Functions returning Task or Task<T> can use await inside their bodies:
Task
Task<T>
await
fun delay:Task (time:int) -> println "before" await Task::Delay time println "after"
It's also possible to use await in the script's top level.
There was an error while loading. Please reload this page.