bors[bot] eee5b682a5 Merge #1
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>
2022-09-05 18:10:14 +00:00
2022-09-01 22:22:28 +02:00
2022-09-05 20:09:29 +02:00
2022-09-05 20:09:29 +02:00
2022-09-01 22:22:28 +02:00
2022-09-01 22:22:28 +02:00
2022-09-01 22:22:28 +02:00

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

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.

Description
It executes futures
Readme 51 KiB
Languages
Rust 100%