UNPKG

@hazae41/plume

Version:

Typed async events with sequenced and parallel dispatching

7 lines (5 loc) 204 B
function rejectOnError(target) { return target.wait("error", (future, ...[cause]) => future.reject(new Error("Errored", { cause }))); } export { rejectOnError }; //# sourceMappingURL=errored.mjs.map