CreateDeadlinePromise (open)

Asynchronous sleep until an absolute time (allows microtasks to run ie to allow promises to resolve)

Syntax

LOADLIB "wh::promise.whlib";

OBJECT FUNCTION CreateDeadlinePromise(DATETIME deadline)

Parameters

DATETIME deadline

Time at which to resolve

Return value

OBJECT

A promise that resolves at the specified time