:sig
function task_await(id : string, timeout_ms : u64) dval

:returns
Task status map.

:content
Use `task_await` to wait for a task status. It returns when the task ends or the timeout expires.

:example capy render
var status := task_await("", u64(0))
print(string(status["state"]), "\n")

:see-group
tasks
