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 tasknameTask to wait for
DATETIME deadlineWait until
RECORD optionsOptions
BOOLEAN allowmissingDon't fail if the task isn't registered (yet)
BOOLEAN debugPrint debuginfo if waiting
Return value
BOOLEANTrue if the task finished, false if timed out