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
/
cjs
/
src
/
mods
/
closed.cjs
9 lines
(6 loc)
•
230 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
'use strict'
;
function
rejectOnClose
(
target
) {
return
target.
wait
(
"close"
,
(
future, ...[cause]
) =>
future.
reject
(
new
Error
(
"Closed"
, { cause }))); }
exports
.
rejectOnClose
= rejectOnClose;
//# sourceMappingURL=closed.cjs.map