EventManager::AsyncReceiveEvent (open)

Asynchronously receives an event

Syntax

LOADLIB "wh::internal/jobs.whlib";

ASYNC FUNCTION AsyncReceiveEvent(DATETIME wait_until)

Parameters

DATETIME wait_until

If this timeout is reached, give back a timeout status

Return value

A promise that resolves when an event is received or the timeout is reached

event

Name of the received event ('' for timeout)

msg

Message of event (DEFAULT RECORD for timeout)

status

Return status, 'ok' or 'timeout'