Skip to main content

Module native

Module native 

Source
Expand description

native implementation

Re-exports§

pub use super::*;

Macros§

call_async_no_send
Awaits an async block or await expression whose future is not Send by dispatching it onto a local task and relaying the result back through a oneshot channel wrapped in Sendable. Accepts either an async block or an await expression and propagates errors with ?.

Structs§

Interval
Interval stream used by the interval() function to provide a a time interval stream. The stream is backed by tokio interval stream on native platforms and by by the JavaScript setInterval() and clearInterval() APIs in WASM32 environment.

Functions§

dispatch
Not supported on native targets; provided for API parity with the WASM implementation and never reached.
interval
async interval() function backed by the JavaScript createInterval()
sleep
Waits until duration has elapsed.
spawn
Spawns a Send future onto the tokio runtime, detaching the resulting task.
yield_executor
Yields execution back to the Tokio runtime.
yield_now
Yields execution back to the Tokio runtime.