Crate async_singleflight[−][src]
A singleflight implementation for tokio.
Inspired by singleflight.
Usage
use async_singleflight::Group; let g = Group::new(); let res = g.work("key", return_res).await; assert_eq!(res, RES);
Structs
Group | Group represents a class of work and creates a space in which units of work can be executed with duplicate suppression. |