Declared in NMBPromise.h

NMBPromiseState

Promise State

Definition

typedef NS_ENUM(NSUInteger, NMBPromiseState ) {
   NMBPromiseStateUnknown,
   NMBPromiseStatePending,
   NMBPromiseStateRunning,
   NMBPromiseStateSucceeded,
   NMBPromiseStateFailed,
   NMBPromiseStateCancelled,
};

Constants

NMBPromiseStateUnknown

There may be a mistake happened, so the promise turn into an unknown state.

Declared In NMBPromise.h.

NMBPromiseStatePending

The promise is just initialized.

Declared In NMBPromise.h.

NMBPromiseStateRunning

The promise is already fire, but get no response yet.

Declared In NMBPromise.h.

NMBPromiseStateSucceeded

The promise is successful.

Declared In NMBPromise.h.

NMBPromiseStateFailed

The promise is failed.

Declared In NMBPromise.h.

NMBPromiseStateCancelled

The promise is cancelled.

Declared In NMBPromise.h.

Declared In

NMBPromise.h