#import <Future.h>
Future protocol provides the means to manipulate and check the status of the module task it represents
◆ cancelWithError:()
- (BOOL Future) cancelWithError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
Cancels the module task
- Parameters
-
error | The error representing the reason for the failure |
- Returns
- True on success, false in case an error occured
◆ isCanceled:withError:()
- (BOOL Future) isCanceled: |
|
(BOOL *_Nonnull) |
canceled |
withError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
|
| |
Checks if the module task is canceled
- Parameters
-
canceled | Will be set to true if module task is canceled, false otherwise |
error | The error representing the reason for the failure |
- Returns
- True on success, false in case an error occured
◆ isFinished:withError:()
- (BOOL Future) isFinished: |
|
(BOOL *_Nonnull) |
finished |
withError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
|
| |
Checks if the module task is finished
- Parameters
-
finished | Will be set to true if module task is finished, false otherwise |
error | The error representing the reason for the failure |
- Returns
- True on success, false in case an error occured
◆ isPaused:withError:()
- (BOOL Future) isPaused: |
|
(BOOL *_Nonnull) |
paused |
withError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
|
| |
Checks if the module task is paused
- Parameters
-
paused | Will be set to true if module task is paused, false otherwise |
error | The error representing the reason for the failure |
- Returns
- True on success, false in case an error occured
◆ isRunning:withError:()
- (BOOL Future) isRunning: |
|
(BOOL *_Nonnull) |
running |
withError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
|
| |
Checks if the module task is in progress
- Parameters
-
running | Will be set to true if module task is in progress, false otherwise |
error | The error representing the reason for the failure |
- Returns
- True on success, false in case an error occured
◆ isStarted:withError:()
- (BOOL Future) isStarted: |
|
(BOOL *_Nonnull) |
started |
withError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
|
| |
Checks if the module task is started which means that it was added to the thread pool queue
- Parameters
-
started | Will be set to true if module task is added to the thread pool queue, false otherwise |
error | The error representing the reason for the failure |
- Returns
- True on success, false in case an error occured
◆ pauseWithError:()
- (BOOL Future) pauseWithError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
Pauses the module task
- Parameters
-
error | The error representing the reason for the failure |
- Returns
- True on success, false in case an error occured
◆ resumeWithError:()
- (BOOL Future) resumeWithError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
Resumes the module task
- Parameters
-
error | The error representing the reason for the failure |
- Returns
- True on success, false in case an error occured
◆ setPaused:withError:()
- (BOOL Future) setPaused: |
|
(BOOL) |
paused |
withError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
|
| |
Sets the paused state of the module task to a given value
- Parameters
-
paused | The paused value to set |
error | The error representing the reason for the failure |
- Returns
- True on success, false in case an error occured
◆ togglePausedWithError:()
- (BOOL Future) togglePausedWithError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
Toggles the paused state of the module task
- Parameters
-
error | The error representing the reason for the failure |
- Returns
- True on success, false in case an error occured
◆ waitForFinishedWithError:()
- (BOOL Future) waitForFinishedWithError: |
|
(NSError *_Nullable *_Nullable) |
error |
|
Waits for the module task to finish
- Parameters
-
error | The error representing the reason for the failure |
- Returns
- True on success, false in case an error occured
The documentation for this protocol was generated from the following file: