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);
A singleflight implementation for tokio.
Inspired by singleflight.
use async_singleflight::Group;
let g = Group::new();
let res = g.work("key", return_res).await;
assert_eq!(res, RES);