delayable-idle-abort-promise
Race an array of promises against a promise that rejects if nothing happens in the specified time window, but that can be postponed by signaling activity
Example
const onePromise = { } const control = try const result = await control // do something with result catch e if e instanceof AbortError console
License
MIT