[−][src]Crate tokio_global
Provides you with global tokio runtimes
It can be used from any point in code without need to manually pass around runtime itself
Tokio flavour
In order to utilize the library you need to choose flavour of runtime
At the moment there are two types:
- Single threaded runtime - As name implies it is event loop on current thread. Available with
feature
single
. - Multi threaded runtime - Tokio's default runtime that runs multiple event loops in pool of
threads. Available with feature
multi
.
Re-exports
pub extern crate tokio; |
pub extern crate futures; |
Modules
multi | Multi threaded runtime module |
single | Single threaded runtime module |
Traits
AutoRuntime | Trait to bootstrap your futures. |