Module async

async

Async utilities for cooperative task scheduling.

Functions

yield function
fn(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.

Parameters

NameTypeNotes
ioIo

Returns: Impl(Future(unit))