StorageTaskManagement
protocol StorageTaskManagement : NSObjectProtocol
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()
-
Pauses a task currently in progress.
Declaration
Swift
optional func pause()
-
Cancels a task currently in progress.
Declaration
Swift
optional func cancel()
-
Resumes a task that is paused.
Declaration
Swift
optional func resume()