ZDCDataPromise

@interface ZDCDataPromise : NSObject

A simple promise-like inteface for returning NodeData in an asynchronous fashion.

  • Successfully completes the promise by delivering the data.

    Declaration

    Objective-C

    - (void)fulfill:(nonnull ZDCData *)result;

    Swift

    func fulfill(_ result: ZDCData)
  • Rejects the promise due to an error. If this happens, the PushManager will treat this as an empty data result.

    Declaration

    Objective-C

    - (void)reject;

    Swift

    func reject()