AWSTaskCompletionSource

Objective-C

@interface AWSTaskCompletionSource<__covariant ResultType> : NSObject

Swift

class AWSTaskCompletionSource<ResultType> : NSObject where ResultType : AnyObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)taskCompletionSource;
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) AWSTask<ResultType> *_Nonnull task;

    Swift

    var task: AWSTask { get }
  • Undocumented

    Declaration

    Objective-C

    - (void)setResult:(nullable ResultType)result;

    Swift

    func set(result: ResultType?)
  • Undocumented

    Declaration

    Objective-C

    - (void)setError:(nonnull NSError *)error;

    Swift

    func set(error: Error)
  • Undocumented

    Declaration

    Objective-C

    - (void)cancel;

    Swift

    func cancel()
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)trySetResult:(nullable ResultType)result;

    Swift

    func trySet(result: ResultType?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)trySetError:(nonnull NSError *)error;

    Swift

    func trySet(error: Error) -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)trySetCancelled;

    Swift

    func trySetCancelled() -> Bool