rt-local

Crates.io Docs.rs Actions Status

Thread local asynchronous runtime working with platform-specific event loops.

Example

```rust use rtlocal::spawnlocal; use rt_local::runtime::core::main;

[main]

async fn main() { let taska = spawnlocal(async { // ... }); let taskb = spawnlocal(async { // ... }); taska.await; taskb.await; } ```

Features

| crate feature | module | backend | | ------------- | --------------------------- | -------------------- | | | core | platform independent | | windows | windows | windows message loop |

License

This project is dual licensed under Apache-2.0/MIT. See the two LICENSE-* files for details.

Contribution

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.