#thread-local #run-time #events #gui #async #platform-specific #rt-local

rt-local-core

Thread local asynchronous runtime working with platform-specific event loops

2 releases

0.1.3 Aug 19, 2023
0.1.0 May 31, 2022

#1941 in Asynchronous

Download history 5/week @ 2024-11-13 13/week @ 2024-11-20 14/week @ 2024-11-27 17/week @ 2024-12-04 21/week @ 2024-12-11 8/week @ 2024-12-18 17/week @ 2025-01-08 6/week @ 2025-01-15 21/week @ 2025-01-22 7/week @ 2025-01-29 14/week @ 2025-02-05 12/week @ 2025-02-12 23/week @ 2025-02-19 22/week @ 2025-02-26

72 downloads per month
Used in 5 crates (via rt-local)

MIT/Apache

18KB
484 lines

rt-local

Crates.io Docs.rs Actions Status

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

Example

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;
}

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.

Dependencies

~305–770KB
~17K SLoC