Available on crate feature
rt only.Expand description
Convenient Runtime for common use
CrossBus is Runtime-less, it means there is no built-in Runtime for execution,
it DOES NOT mean CrossBus runs without runtime. on the contrary, CrossBus allow various runtimes and customized runtime even a bare-bone executor.
for convenience, CrossBus provides three common runtimes
- bare tokio-based runtime (with feature tokio),
just a few crates, however, no
io,timesupported (build your own if necessary) - async-std-based runtime (with feature async-std), kind of large and redundant
- wasm-bindgen-futures-based runtime (with feature wasm32),
only
spawn_localsupported
Modules
- runtime_async_std
async-std - runtime_tokio
tokio - runtime_wasm32
wasm32 - wasm_timeout
wasm32
Traits
- trait that the return type of Spawning must implement
- An abstraction for Actor’s Runtime routine