Module async

async

Async utilities for cooperative task scheduling.

Functions

yield function
fn(using(io : IO)) -> Impl(Future(unit))

Suspend the current async task, allowing other tasks to run on the event loop. Implemented as an immediately-completing async block that forces a suspension point.

Effects

NameTypeNotes
ioIOcomptime, implicit

Returns: Impl(Future(unit))