#events #async-task #task #async #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

#798 in Concurrency

Download history 520/week @ 2024-07-20 234/week @ 2024-07-27 143/week @ 2024-08-03 215/week @ 2024-08-10 134/week @ 2024-08-17 89/week @ 2024-08-24 100/week @ 2024-08-31 57/week @ 2024-09-07 66/week @ 2024-09-14 172/week @ 2024-09-21 153/week @ 2024-09-28 233/week @ 2024-10-05 126/week @ 2024-10-12 154/week @ 2024-10-19 71/week @ 2024-10-26 122/week @ 2024-11-02

489 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