mirror of
https://github.com/bertptrs/beul.git
synced 2025-12-25 12:40:31 +01:00
eee5b682a5739629ce61ad54355b8870b5a5cdc8
1: Fix hanging when a future wakes itself r=bertptrs a=bertptrs It's possible that either the future wakes itself or the something requests to be awoken while the future is being polled. This PR adds a bool to the waker state to track whether that happened, and will immediately unpark the executor if it did. Also add bors for nicer merging. Co-authored-by: Bert Peters <bert@bertptrs.nl>
Beul
Beul is a minimalistic futures executor. No dependencies, no unsafe rust.
Usage
Simply call execute with your future:
beul::execute(async {});
Backwards compatibility
This crate requires at least Rust 1.51, due to its reliance on Wake. Increases in this version will be considered breaking changes. This crate follows semantic versioning.
Limitations
Beul is a single-threaded executor and will not provide anything but execution. Futures that depend on runtime features, as present for example in Tokio, will not work.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
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.
Languages
Rust
100%