event-listener
event-listener copied to clipboard
Notify async tasks or threads
Might be useful to avoid allocations in async use-cases. TODO: - tests - comments
Hi, This package has been a lifesaver. I really unable to implement https://github.com/rmcgibbo/async-priority-channel (which whos API is basically copied completely from smol-rs/async-channel) without out. One question: would it be straightforward/possible...
The `Event` and `EventListener` types become parameterized by a new type `T`, which represents the type of the token that is passed with each notifitication. This type is `()` by...
Hello! I've just built an RWLock based around a single atomic and now I'm trying to make an async version with eventlistener. For my purposes, simply knowing if any listeners...
This PR resolves #28 by replacing this crate's algorithm with one that is compatible with `no_std`. I realized that the current algorithm is basically a concurrent queue, so I replaced...
If this crate were `no_std`, it would allow crates like `async-lock` and `async-channel` to be used on `no_std` as well. I envision an API with a default `std` feature, and...
https://github.com/smol-rs/async-lock/pull/80#issuecomment-1975145930 Given that this only cropped up after the v5.0 update, it's probably this crate's fault.
`concurrent-queue` is a pretty heavy dependency for a crate as small as `event-listener`. It would be nice if we were able to avoid using it.
In my most recent PRs, I've added a significant amount of code that doesn't end up being tested on the common case. In order to make sure our tests function...
Updates the requirements on [portable-atomic-util](https://github.com/taiki-e/portable-atomic) to permit the latest version. Release notes Sourced from portable-atomic-util's releases. portable-atomic-util 0.2.0 Rewrite Arc based on std::sync::Arc's implementation. (#142) This fixes accidental API differences...