Promise Utilities
Functions for creating promises or making their usage more convenient.
#
delaydelay(promise, time) => Promise
Returns a new Promise that waits time
more miliseconds after the promise
fulfills returning its result.
#
unwrapPromiseunwrapPromise() => object
Creates a new Promise and returns it together with its resolve
/reject
functions as properties.
#
waitwait(time) => Promise
Returns a Promise fulfilling after time
miliseconds.