sigwake
A thread-safe state management library using signals
sigwake is a library that reinterprets signal-based state management (commonly used in modern web frameworks) through Rust's asynchronous programming model.
Features
- Supports reactive programming with Signal-based dependency tracking from state access
- Integration with Rust's asynchronous programming model (
async/await
,Future
,Waker
) - Thread-safe implementation
- Runtime-agnostic implementation that can be used with any async runtime
- Compact API
Example
use Duration;
use StreamExt;
use ;
use ;
async
Output:
1
4
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.