Generic callback task
Usefull for creating custom tasks from success and error callbacks and cancelaton function. Synchronous callbacks are not supported,
task body with success and error callbacks
task resolving to success value
fromFuction
export function timeout(delay: number) { return fromCallback<NodeJS.Timeout, void>((resolve) => setTimeout(() => resolve(), delay), clearTimeout);} Copy
export function timeout(delay: number) { return fromCallback<NodeJS.Timeout, void>((resolve) => setTimeout(() => resolve(), delay), clearTimeout);}
Generated using TypeDoc
Generic callback task
Usefull for creating custom tasks from success and error callbacks and cancelaton function. Synchronous callbacks are not supported,