batched
Rust macro utility for batching expensive async operations.
Installation
cargo add batched
Or add this to your Cargo.toml :
[ dependencies ] batched = " 0.2.7 "
limit : Maximum amount of items that can be grouped and processed in a single batch.
: Maximum amount of items that can be grouped and processed in a single batch. concurrent : Maximum amount of concurrent batched tasks running (default: Infinity )
: Maximum amount of concurrent batched tasks running (default: ) window : Minimum amount of time (in milliseconds) the background thread waits before processing a batch.
: Minimum amount of time (in milliseconds) the background thread waits before processing a batch. window[x]: Minimum amount of time (in milliseconds) the background thread waits before processing a batch when latest buffer size is <= x
... continue reading