FIRStorageTaskManagement

@protocol FIRStorageTaskManagement <NSObject>

Defines task operations such as pause, resume, cancel, and enqueue for all tasks. All tasks are required to implement enqueue, which begins the task, and may optionally implement pause, resume, and cancel, which operate on the task to pause, resume, and cancel operations.

  • Prepares a task and begins execution.

    Declaration

    Swift

    func enqueue()

    Objective-C

    - (void)enqueue;
  • Pauses a task currently in progress.

    Declaration

    Swift

    optional func pause()

    Objective-C

    - (void)pause;
  • Cancels a task currently in progress.

    Declaration

    Swift

    optional func cancel()

    Objective-C

    - (void)cancel;
  • Resumes a task that is paused.

    Declaration

    Swift

    optional func resume()

    Objective-C

    - (void)resume;