UNPKG

parallel-universe

Version:

The set of async flow control structures and promise utils.

9 lines (6 loc) 230 B
import { AbortablePromise } from './AbortablePromise.mjs'; function noop() { } function withSignal(value, signal) { return value instanceof AbortablePromise ? value.withSignal(signal) : value; } export { noop, withSignal };