4 releases
0.1.2 | Mar 31, 2023 |
---|---|
0.1.1 | Mar 31, 2023 |
0.1.0 | Mar 31, 2023 |
0.0.0 | Mar 31, 2023 |
#1946 in Asynchronous
8,858 downloads per month
5KB
Tokio Utils
Tools for asynchronous programming in Tokio applications:
Resource Pooling
- Pool, a shared resource pool.
Rate Limiting
- RateLimiter, a rate limiter
- MultiRateLimiter, a key-based rate limiter
Graceful Shutdown
- ShutdownController, a controller for graceful shutdown
- ShutdownMonitor, a monitor for graceful shutdown
Stdin
- recv_from_stdin, a channel that receives data from stdin
Usage
Add this to your Cargo.toml:
[dependencies]
tokio-utils = "0.1.2"
Dependencies
~3.5–9.5MB
~80K SLoC