Crates.io | yaaral |
lib.rs | yaaral |
version | 0.1.1 |
source | src |
created_at | 2024-08-27 05:47:05.04114 |
updated_at | 2024-09-11 09:07:37.40025 |
description | yet another async runtime abstraction library |
homepage | |
repository | https://gitlab.com/cyloncore/yaaral |
max_upload_size | |
id | 1352927 |
size | 8,340 |
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.
In cargo.toml
:
futures-executor
:yaaral = { version = "0.1.x", features = ["futures_executor"] }
tokio
:yaaral = { version = "0.1.x", features = ["tokio"] }
In code, you can start a new runtime with:
let runtime = yaaral::Runtime::new("thread-name-");