Skip to main content

Crate tilo_wake

Crate tilo_wake 

Source
Expand description

Instance-scoped background wake routing, shared by native and headless hosts: a scope whose owner is woken when work lands for it. No async runtime is linked, so a document model can route wakes in a sandboxed wasm build.

Structs§

Owed
Reply
The answering end of a request made under a wake scope; sending the answer wakes that scope’s event loop.
WakeEvent
A weak identity for a queued wake; it never owns an app or its scope.
WakeHandle
WakeScope
WakeScopeGuard
A thread-affine construction and dispatch guard, independent of an App borrow.
WakingSender
The worker’s end of a waking_channel: every send wakes the scope that opened it.
WakingSyncSender
The worker’s end of a waking_sync_channel, which queues no faster than its owner takes.

Enums§

WakeBindError

Functions§

reply
waking_channel
A channel opened under the current wake scope: every reply a worker sends wakes the app’s loop, which drains it on its next sync.
waking_sync_channel
waking_channel with room for bound messages, so a worker sending costly replies waits for its owner to take them.