- Index
- »
- task
- »
- func:taskSleep
def
func:taskSleep
taskSleep(dur)
Sleep for the given duration. If not currently running in a task this is a no-op. This will block the current task's thread and prevent other tasks from using it until the sleep completes. So this function should be used sparingly and with care.