@lucid-softworks/call-once-async
v0.1.0
Published
Share one async call, cache success, and retry failures.
Maintainers
Readme
@lucid-softworks/call-once-async
Share a single in-flight call and cache its successful result. Concurrent calls
receive the same promise; rejection resets the wrapper for retry. clear() and
pending() provide explicit control.
import { callOnceAsync } from "@lucid-softworks/call-once-async";
const loadConfigOnce = callOnceAsync(loadConfig);