Crate tokio_utils

Source
Expand description

Tools for asynchronous programming in Tokio applications

§Resource Pooling

  • Pool, a shared resource pool

§Rate Limiting

§Graceful Shutdown

§Stdin

Structs§

MultiRateLimiter
MultiRateLimiter enables key-based rate limiting, where each key has its own RateLimiter.
Pool
A shared resource pool
RateLimiter
RateLimiter is a tool which can control the rate at which processing happens.
ShutdownController
A ShutdownController is used to control the shutdown of an application.
ShutdownMonitor
A ShutdownMonitor listens for the shutdown signal from a ShutdownController and tracks that the signal has been received.

Functions§

recv_from_stdin
Returns a mpsc::Receiver that contains the input from stdin