#async #task #events

async-events

Waiting for external task completion in asynchronous Rust code

2 releases

0.1.1 Oct 6, 2021
0.1.0 May 15, 2021

#168 in Concurrency

Download history 24/week @ 2021-08-10 84/week @ 2021-08-17 47/week @ 2021-08-24 64/week @ 2021-08-31 72/week @ 2021-09-07 116/week @ 2021-09-14 98/week @ 2021-09-21 85/week @ 2021-09-28 112/week @ 2021-10-05 63/week @ 2021-10-12 57/week @ 2021-10-19 23/week @ 2021-10-26 25/week @ 2021-11-02 26/week @ 2021-11-09 54/week @ 2021-11-16 68/week @ 2021-11-23

187 downloads per month
Used in throttle-server

MIT license

8KB
130 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