AWSTask
Objective-C
@interface AWSTask<__covariant ResultType> : NSObject
Swift
class AWSTask<ResultType> : NSObject where ResultType : AnyObject
Undocumented
-
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)taskWithResult:(nullable ResultType)result;
Swift
convenience init(result: ResultType?)
-
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)taskWithError:(nonnull NSError *)error;
Swift
convenience init(error: Error)
-
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)cancelledTask;
Swift
class func cancelled() -> Self
-
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)taskForCompletionOfAllTasks: (nullable NSArray<AWSTask *> *)tasks;
Swift
convenience init(forCompletionOfAllTasks tasks: [AWSTask<AnyObject>]?)
-
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)taskForCompletionOfAllTasksWithResults: (nullable NSArray<AWSTask *> *)tasks;
Swift
convenience init(forCompletionOfAllTasksWithResults tasks: [AWSTask<AnyObject>]?)
-
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)taskForCompletionOfAnyTask: (nullable NSArray<AWSTask *> *)tasks;
Swift
convenience init(forCompletionOfAnyTask tasks: [AWSTask<AnyObject>]?)
-
Undocumented
Declaration
Objective-C
+ (nonnull AWSTask<AWSVoid> *)taskWithDelay:(int)millis;
Swift
/*not inherited*/ init(delay millis: Int32)
-
Undocumented
Declaration
Objective-C
+ (nonnull AWSTask<AWSVoid> *)taskWithDelay:(int)millis cancellationToken: (nullable AWSCancellationToken *)token;
Swift
/*not inherited*/ init(delay millis: Int32, cancellationToken token: AWSCancellationToken?)
-
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)taskFromExecutor:(nonnull AWSExecutor *)executor withBlock:(nullable id _Nonnull (^)(void))block;
Swift
convenience init(from executor: AWSExecutor, with block: (() -> Any)? = nil)
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) ResultType result;
Swift
var result: ResultType? { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) NSError *error;
Swift
var error: Error? { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly, getter=isCancelled) BOOL cancelled;
Swift
var isCancelled: Bool { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly, getter=isFaulted) BOOL faulted;
Swift
var isFaulted: Bool { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly, getter=isCompleted) BOOL completed;
Swift
var isCompleted: Bool { get }
-
Undocumented
Declaration
Objective-C
- (nonnull AWSTask *)continueWithBlock:(nonnull AWSContinuationBlock)block;
Swift
func continueWith(block: @escaping AWSContinuationBlock) -> AWSTask<AnyObject>
-
Undocumented
Declaration
Objective-C
- (nonnull AWSTask *)continueWithBlock:(nonnull AWSContinuationBlock)block cancellationToken: (nullable AWSCancellationToken *)cancellationToken;
Swift
func continueWith(block: @escaping AWSContinuationBlock, cancellationToken: AWSCancellationToken?) -> AWSTask<AnyObject>
-
Undocumented
Declaration
Objective-C
- (nonnull AWSTask *)continueWithExecutor:(nonnull AWSExecutor *)executor withBlock:(nonnull AWSContinuationBlock)block;
Swift
func continueWith(executor: AWSExecutor, block: @escaping AWSContinuationBlock) -> AWSTask<AnyObject>
-
Undocumented
Declaration
Objective-C
- (nonnull AWSTask *)continueWithExecutor:(nonnull AWSExecutor *)executor block:(nonnull AWSContinuationBlock)block cancellationToken: (nullable AWSCancellationToken *)cancellationToken;
Swift
func continueWith(executor: AWSExecutor, block: @escaping AWSContinuationBlock, cancellationToken: AWSCancellationToken?) -> AWSTask<AnyObject>
-
Undocumented
Declaration
Objective-C
- (nonnull AWSTask *)continueWithSuccessBlock: (nonnull AWSContinuationBlock)block;
Swift
func continueOnSuccessWith(block: @escaping AWSContinuationBlock) -> AWSTask<AnyObject>
-
Undocumented
Declaration
Objective-C
- (nonnull AWSTask *) continueWithSuccessBlock:(nonnull AWSContinuationBlock)block cancellationToken:(nullable AWSCancellationToken *)cancellationToken;
Swift
func continueOnSuccessWith(block: @escaping AWSContinuationBlock, cancellationToken: AWSCancellationToken?) -> AWSTask<AnyObject>
-
Undocumented
Declaration
Objective-C
- (nonnull AWSTask *)continueWithExecutor:(nonnull AWSExecutor *)executor withSuccessBlock:(nonnull AWSContinuationBlock)block;
Swift
func continueOnSuccessWith(executor: AWSExecutor, block: @escaping AWSContinuationBlock) -> AWSTask<AnyObject>
-
Undocumented
Declaration
Objective-C
- (nonnull AWSTask *)continueWithExecutor:(nonnull AWSExecutor *)executor successBlock:(nonnull AWSContinuationBlock)block cancellationToken: (nullable AWSCancellationToken *)cancellationToken;
Swift
func continueOnSuccessWith(executor: AWSExecutor, block: @escaping AWSContinuationBlock, cancellationToken: AWSCancellationToken?) -> AWSTask<AnyObject>
-
Undocumented
Declaration
Objective-C
- (void)waitUntilFinished;
Swift
func waitUntilFinished()