UNPKG

@hazae41/plume

Version:

Typed async events with sequenced and parallel dispatching

9 lines (6 loc) 230 B
'use strict'; function rejectOnClose(target) { return target.wait("close", (future, ...[cause]) => future.reject(new Error("Closed", { cause }))); } exports.rejectOnClose = rejectOnClose; //# sourceMappingURL=closed.cjs.map