yaaral: yet another async runtime abstraction library
yaaral is an abstraction to select between the runtime of tokio, futures-executor and std-async. Its development is driven by the need of the auKsys and CylonCore projects. Feel free to submit any pull requests for your own needs.
Compatibilities
| yaaral | futures | tokio | bevy |
|---|---|---|---|
| 0.2.x-0.3.x | 0.3.x | 1.x | 0.16.x |
| 0.1.x | 0.3.x | 1.x | - |
How to use?
In cargo.toml:
futures-executor
- use the following for support with
futures-executor:
= { = "0.3", = ["futures_runtime"] }
use ;
let runtime = new;
tokio
- use the following for support with
tokio:
= { = "0.2", = false, = ["tokio_runtime"] }
In code, you can start a new runtime with:
use ;
let runtime = new;
bevy
- use the following for support with
tokio:
= { = "0.3", = false, = ["bevy_runtime"] }
let runtime = async_compute_task_pool;
let runtime = io_task_pool;