js-util

Home > rc-js-util > _Promise

_Promise class

Utilities for handling promises.

Signature:

export declare class _Promise 

Properties

Property Modifiers Type Description
delay static typeof promiseDelay Returns a Promise which will resolve to resolveWith after a delay of delay (in milliseconds).
rejectFalse static typeof promiseRejectFalse Returns a Promise of rejection with the supplied error if the value is false.
rejectFalsey static typeof promiseRejectFalsey Returns a Promise of rejection with the supplied error if the value is falsy.
rejectNull static typeof promiseRejectNull Returns a Promise of rejection with the supplied error if the value is null or undefined.