sleepAsync

void sleepAsync(nuint timeoutMs, escaped once void() complete)

Completes after approximately the requested duration.

Remarks

The completion callback is invoked by a platform timer thread after the delay. A caller that needs to resume on a specific thread should use an async resumer that marshals continuations to that thread.

Parameters

nuint
timeoutMs

The number of milliseconds to wait. A value of 0 completes immediately.

escaped once void()
complete

The callback to invoke when the delay elapses.

Generated with campc v0.4.0-preview.1+d50446ef951a6ed675f7086cf093dbc993f0041b.