UNPKG
@hazae41/plume
Version:
latest (3.0.7)
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
2.4.5
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.3.0
2.2.3
2.2.2
2.2.1
2.2.0
2.1.12
2.1.10
2.1.9
2.1.8
2.1.7
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.11
2.0.10
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.1
1.0.0
Typed async events with sequenced and parallel dispatching
github.com/hazae41/plume
hazae41/plume
@hazae41/plume
/
dist
/
esm
/
src
/
mods
/
errored.mjs
7 lines
(5 loc)
•
204 B
JavaScript
View Raw
1
2
3
4
5
6
7
function
rejectOnError
(
target
) {
return
target.
wait
(
"error"
,
(
future, ...[cause]
) =>
future.
reject
(
new
Error
(
"Errored"
, { cause }))); }
export
{ rejectOnError };
//# sourceMappingURL=errored.mjs.map