RetrieveManagedTaskResult (open)
Waits until a managed task is finished, returns its result. Throws if the task has failed.
Syntax
LOADLIB "mod::system/lib/tasks.whlib";
RECORD FUNCTION RetrieveManagedTaskResult(INTEGER taskid, DATETIME maxwait, RECORD options)Parameters
INTEGER taskidId of the task
DATETIME maxwaitWait until this time
RECORD optionsOptions
BOOLEAN acceptcancelDon't throw if the task is cancelled
BOOLEAN accepttempfailureDon't throw if the task is temporarily failed but will still retry
BOOLEAN accepttimeoutIn case of timeout, just return a default record
Return value
RECORDTask result