UNPKG

@hazae41/plume

Version:

Typed async events with sequenced and parallel dispatching

9 lines (6 loc) 232 B
'use strict'; function rejectOnError(target) { return target.wait("error", (future, ...[cause]) => future.reject(new Error("Errored", { cause }))); } exports.rejectOnError = rejectOnError; //# sourceMappingURL=errored.cjs.map