OxL Reference

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 modifier lazy; the operand of spawn.
  • An explicit wait await t applies to any Task.

See also

Source: docs/spec/oxl-standard.en.md