Bluebird API Manual
Section
Function
- new Promise(Function<Function resolve, Function reject> resolver) -> Promise
- .then([Function fulfilledHandler] [, Function rejectedHandler ]) -> Promise
- .spread([Function fulfilledHandler] [, Function rejectedHandler ]) -> Promise
- .catch(Function handler) -> Promise
- .catch([Function ErrorClass|Function predicate...], Function handler) -> Promise
- .error( [rejectedHandler] ) -> Promise
- .finally(Function handler) -> Promise
- .bind(dynamic thisArg) -> Promise
- Promise.join(Promise|Thenable|value promises..., Function handler) -> Promise
- Promise.try(Function fn [, Array<dynamic>|dynamic arguments] [, dynamic ctx] ) -> Promise
- Promise.method(Function fn) -> Function
- Promise.resolve(dynamic value) -> Promise
- Promise.reject(dynamic reason) -> Promise
- Promise.bind(dynamic thisArg) -> Promise
- .isFulfilled() -> boolean
- .isRejected() -> boolean
- .isPending() -> boolean
- .value() -> dynamic
- .reason() -> dynamic
- .all() -> Promise
- .props() -> Promise
- .settle() -> Promise
- .any() -> Promise
- .race() -> Promise
- .some(int count) -> Promise
- .map(Function mapper [, Object options]) -> Promise
- .reduce(Function reducer [, dynamic initialValue]) -> Promise
- .filter(Function filterer [, Object options]) -> Promise
- .each(Function iterator) -> Promise
- Promise.using(Promise|Disposer promise, Promise|Disposer promise ..., Function handler) -> Promise
- .disposer(Function disposer) -> Disposer
- Promise.promisify(Function nodeFunction [, dynamic receiver]) -> Function
- Promise.promisifyAll(Object target [, Object options]) -> Object
- Promise.fromNode(Function resolver) -> Promise
- .nodeify([Function callback] [, Object options]) -> Promise
- .asCallback([Function callback] [, Object options]) -> Promise
- .delay(int ms) -> Promise
- .timeout(int ms [, String message]) -> Promise
- Promise.delay([dynamic value], int ms) -> Promise
- .cancellable() -> Promise
- .uncancellable() -> Promise
- .cancel([Error reason]) -> Promise
- .isCancellable() -> boolean
- Promise.coroutine(GeneratorFunction generatorFunction) -> Function
- Promise.coroutine.addYieldHandler(function handler) -> void
- .tap(Function handler) -> Promise
- .call(String propertyName [, dynamic arg...]) -> Promise
- .get(String propertyName|int index) -> Promise
- .return(dynamic value) -> Promise
- .throw(dynamic reason) -> Promise
- Promise.noConflict() -> Object
- Promise.setScheduler(Function scheduler) -> void
- .reflect() -> Promise<PromiseInspection>
- OperationalError()
- TimeoutError()
- CancellationError()
- AggregateError()
- Promise.onPossiblyUnhandledRejection(Function handler) -> undefined
- Promise.onUnhandledRejectionHandled(Function handler) -> undefined
- Promise.longStackTraces() -> void
- .done([Function fulfilledHandler] [, Function rejectedHandler ]) -> void