Skip to main content

Module async_host

Module async_host 

Source
Expand description

Portable async-host boundary traits.

kernel names the runtime/host seam in terms of a small, object-safe task-spawning interface so native and wasm hosts can choose different executor models without changing runtime code.

Structs§

BlockingTaskReceiver
Typed wrapper over an erased blocking-task result channel.

Enums§

BlockingTryRecvError
SpawnError

Traits§

AsyncSpawner
Object-safe host-provided async spawner.

Functions§

spawn_blocking
Spawn a blocking task through an object-safe AsyncSpawner and recover a typed result receiver on the caller side.

Type Aliases§

BoxedBlockingWork
Boxed blocking-task work item used at the object-safe trait boundary.
ErasedBlockingResult
Boxed blocking-task result used at the object-safe trait boundary.