Tracing route… ///
Tracing route… ///
Wrap an async function with stale-while-revalidate caching , serve fresh instantly, serve stale while refreshing once in the background, block only when truly expired. Single-flight, per key.
Wrap an async function with stale-while-revalidate caching , serve fresh instantly, serve stale while refreshing once in the background, block only when truly expired. Single-flight, per key.
$ npm install staleness@azghr/singletDeduplicate concurrent async calls: same key, one in-flight promise. Not a cache.
@azghr/wendPoll an async producer until a predicate passes , exponential backoff with jitter, overall timeout, AbortSignal, returns the value
husbandryStructured concurrency for async tasks , spawn siblings under one scope; first failure cancels the rest via AbortSignal, then the scope throws after all have settled.