async_singleflight 0.0.5

Async singleflight.
Documentation

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);