#events #async-task #task #async #notifications #data-structures

async-events

Waiting for external task completion in asynchronous Rust code

4 releases

0.2.0 Nov 29, 2023
0.1.2 Feb 18, 2023
0.1.1 Oct 6, 2021
0.1.0 May 15, 2021

#441 in Concurrency

Download history 294/week @ 2024-01-28 245/week @ 2024-02-04 587/week @ 2024-02-11 553/week @ 2024-02-18 279/week @ 2024-02-25 269/week @ 2024-03-03 235/week @ 2024-03-10 189/week @ 2024-03-17 128/week @ 2024-03-24 149/week @ 2024-03-31 149/week @ 2024-04-07 346/week @ 2024-04-14 231/week @ 2024-04-21 457/week @ 2024-04-28 488/week @ 2024-05-05 254/week @ 2024-05-12

1,498 downloads per month
Used in throttle-server

MIT license

14KB
177 lines

Async events

Waiting for external task completion in asynchronous Rust code.

Motivation

A pair of Future and data structure originally developed for the throttle semaphore sever, to handle a large amount of blocking request while waiting for notification from external services that semaphores have been freed again. It occurred to me that this code might also be useful to other services waiting on external events, not driving the futures to completion within their own process.

Usage

This crate is independent of the asynchronous runtime used (e.g. tokio).

See https://docs.rs/async-events for documentation.

No runtime deps