untokio: pretend tokio doesn't exist
Do you struggle with any of the following symptoms?
- Ennui triggered by the thought of inflicting tokio::main or tokio runtime management on users of your library
- Indecision about what runtime configuration you should use for your runtimes?
thread 'main' panicked at 'not currently running on the Tokio runtime.'
Struggle no more, with untokio
! untokio
will automatically create a runtime so you don't have to.
example: tokio = "0.2", reqwest = "0.10"
[]
= { = "0.2", = ["v02"] }
.await.unwrap
spawn
example: tokio = "0.3"
[]
= { = "0.2", = ["v03"] }
.await.unwrap
spawn
example: tokio = "1"
[]
= { = "0.2", = ["v1"] }
.await.unwrap
spawn
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.