Improve background task logic.

pull/1/head
Matthew Chen 7 years ago
parent c3b6de4f83
commit 2cc3752901

@ -21,6 +21,9 @@ typedef void (^BackgroundTaskCompletionBlock)(BackgroundTaskState backgroundTask
// Usage:
//
// * Use factory method to start a background task.
// * Retain a strong reference to the OWSBackgroundTask during the "work".
// * Clear all references to the OWSBackgroundTask when the work is done,
// if possible.
@interface OWSBackgroundTask : NSObject
- (instancetype)init NS_UNAVAILABLE;

Loading…
Cancel
Save