Tokio Compat
Compatibility layers between tokio
0.2 and legacy versions.
Website | Guides | API Docs | Chat
Overview
This crate provides compatibility runtimes that allow running both futures
0.1
futures that use tokio
0.1 runtime services and std::future
futures that
use tokio
0.2 runtime services.
Examples
Spawning both tokio
0.1 and tokio
0.2 futures:
use lazy;
run
Futures on the compat runtime can use timer
APIs from both 0.1 and 0.2
versions of tokio
:
use ;
use lazy;
use *;
run_std;
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.