https://github.com/pacman82/async-events
Waiting for external tasks in asynchronous rust code
https://github.com/pacman82/async-events
Last synced: 2 months ago
JSON representation
Waiting for external tasks in asynchronous rust code
- Host: GitHub
- URL: https://github.com/pacman82/async-events
- Owner: pacman82
- Created: 2021-05-15T20:00:06.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-29T17:01:27.000Z (over 1 year ago)
- Last Synced: 2025-03-01T21:05:28.799Z (3 months ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
Awesome Lists containing this project
README
# 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](https://github.com/pacman82/throttle), 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.