inflight-barrier
One promise for multiple requests in flight to avoid async duplication
Usage
const barrier = // some request that does some stuff { // key can be any value which can be used as a key in a Map return } // only assigns a single setTimeout// when it dings, all thens get called with the same result. (There's only// one underlying promise.)