Module stream_handles

Module stream_handles 

Source
Expand description

Consistent Stream behavior between WebAssembly and Native utilizing tokio::task::spawn in native and wasm_bindgen_futures::spawn for web.

Structs§

TokioStreamHandle

Enums§

StreamHandleError

Traits§

AbortHandle
A handle that can be moved/cloned/sent, but can only close the stream.
StreamHandle
A handle to a spawned Stream the spawned stream can be ’joined` by awaiting its Future implementation. All spawned tasks are detached, so waiting the handle is not required.

Functions§

spawn
spawn_instrumented

Type Aliases§

GenericStreamHandle