Crates.io | rt-local-core |
lib.rs | rt-local-core |
version | 0.1.3 |
source | src |
created_at | 2022-05-31 06:01:07.627648 |
updated_at | 2023-08-19 08:40:14.740328 |
description | Thread local asynchronous runtime working with platform-specific event loops. |
homepage | |
repository | https://github.com/frozenlib/rt-local |
max_upload_size | |
id | 597267 |
size | 17,108 |
Thread local asynchronous runtime working with platform-specific event loops.
use rt_local::spawn_local;
use rt_local::runtime::core::main;
#[main]
async fn main() {
let task_a = spawn_local(async {
// ...
});
let task_b = spawn_local(async {
// ...
});
task_a.await;
task_b.await;
}
crate feature | module | backend |
---|---|---|
core |
platform independent | |
windows |
windows |
windows message loop |
This project is dual licensed under Apache-2.0/MIT. See the two LICENSE-* files for details.
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.