UNPKG

parallel-universe

Version:

The set of async flow control structures and promise utils.

12 lines (8 loc) 285 B
'use strict'; var AbortablePromise = require('./AbortablePromise.js'); function noop() { } function withSignal(value, signal) { return value instanceof AbortablePromise.AbortablePromise ? value.withSignal(signal) : value; } exports.noop = noop; exports.withSignal = withSignal;