| Crates.io | asyncnal |
| lib.rs | asyncnal |
| version | 0.3.1 |
| created_at | 2025-08-05 01:28:58.0211+00 |
| updated_at | 2025-09-04 18:26:48.544772+00 |
| description | Fast concurrent & local asyncronous signalling |
| homepage | |
| repository | https://github.com/DiscordJim/asyncnal |
| max_upload_size | |
| id | 1781357 |
| size | 95,683 |
Fast, executor-agnostic, asynchronous signalling primitives for multithreaded and singlethreaded runtimes
TODO: Deal wwith the waker swap
unsafe code.You can get started with the following code:
use asyncnal::{Event, EventSetter};
let event = Event::new();
assert!(!event.has_waiters());
// We'll pre-set the event.
event.set_one();
// This will immediately return.
event.wait().await;
For more information, please read the documentation which contains an extensive set of examples on how this crate can be used along with the variants contained within the crate.
First, there are quite a few feature options on this crate, so if you are making any changes I would highly recommend
$ cargo install cargo-all-features
$ cargo check-all-features
Normal tests can be run as follows:
$ cargo test