OngoingExecutionStrategy

enum OngoingExecutionStrategy

Strategy for handling ongoing execution when clearing cached results

Defines how to handle a running task when clearResult() is called.

  • Cancel the current execution immediately and notify callbacks with cancellation error

    Declaration

    Swift

    case cancel
  • Allow current execution to complete, then automatically restart with fresh execution

    Declaration

    Swift

    case restart
  • Allow current execution to complete normally, just clear the cached result

    Declaration

    Swift

    case allowCompletion