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

#400 in Concurrency

Download history 196/week @ 2024-01-02 225/week @ 2024-01-09 383/week @ 2024-01-16 305/week @ 2024-01-23 224/week @ 2024-01-30 373/week @ 2024-02-06 549/week @ 2024-02-13 453/week @ 2024-02-20 290/week @ 2024-02-27 298/week @ 2024-03-05 209/week @ 2024-03-12 173/week @ 2024-03-19 134/week @ 2024-03-26 141/week @ 2024-04-02 209/week @ 2024-04-09 396/week @ 2024-04-16

901 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