Namespace: timing

syngen.utility.timing

Provides methods that simplify working with timers.

Source:

Methods

(static) cancelablePromise(duration) → {Promise}

Returns a cancelable promise that resolves after duration milliseconds.

Parameters:
Name Type Description
duration Number
Source:
Returns:

Has a cancel method that can reject itself prematurely.

Type
Promise

(static) promise(duration) → {Promise}

Returns a promise that resolves after duration milliseconds.

Parameters:
Name Type Description
duration Number
Source:
Returns:
Type
Promise