6.3 Calling suspendable functions
- A call of a suspendable function in statement position or in an ordinary expression executes immediately; the current task waits for the result (implicit
await). - In three positions the call is not executed but turned into a lazy
Task<T, E>(§8.3): the left operand of->,?->,~>; the argument of a parameter with the modifierlazy; the operand ofspawn. - An explicit wait
await tapplies to anyTask.
See also
Source: docs/spec/oxl-standard.en.md