WaitForTimedTask (open)
Wait for timed tasks to finish
Syntax
LOADLIB "mod::system/lib/tasks.whlib";
BOOLEAN FUNCTION WaitForTimedTask(STRING taskname, DATETIME deadline, RECORD options)
Parameters
STRING taskname
Task to wait for
DATETIME deadline
Wait until
RECORD options
Options
BOOLEAN allowmissing
Don't fail if the task isn't registered (yet)
BOOLEAN debug
Print debuginfo if waiting
Return value
BOOLEAN
True if the task finished, false if timed out