lev.await

lev

await(task) -> result, err

Wait for a spawned task to complete

Yields the current coroutine until the given task finishes. Returns the task's return values on success, or nil, err on error.