WaitUntilMultiple (open)
Wait until a handle is signalled, a promise is fulfilled or a timeout is reached. Deprecated, use WaitUntil with multiple := TRUE
Syntax
// Core function, no LOADLIB necessary
RECORD ARRAY FUNCTION WaitUntilMultiple(RECORD waitfor, DATETIME until)Parameters
RECORD waitforWhat to wait for
BOOLEAN callbacksif TRUE, return when a callback has been executed
BOOLEAN multipleif TRUE, allow returning multiple results
BOOLEAN nothrowIf TRUE, rejected promises are returned in the return value, instead of throwing the exception.
OBJECT ARRAY promiseReturn when any of these promises are fulfilled. Throws when a promise is rejected, returns the fulfilled promise and the value it resolved to otherwise. (optional)
INTEGER ARRAY readReturn when any of these handles is read-signalled (optional)
INTEGER ARRAY writeReturn when any of these handles is write-signalled (optional)
DATETIME untilWait until this time
Return value
RECORD ARRAYList of signalled items
fulfillmenttypeIndicates whether the promise was resolved or rejected. Values: "resolved" / "rejected" (promise only)
handleSignalled handle
promiseFulfilled promise (promises only)
typeReason of exit: 'handle-read', 'handle-write', 'promise', 'timeout', 'callback')
valueValue the promise resolved to (promises only)