File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,14 @@ exports.onEnd = function (s) {
47
47
} ;
48
48
} ;
49
49
50
+ exports . onFinish = function ( s ) {
51
+ return function ( f ) {
52
+ return function ( ) {
53
+ s . on ( "finish" , f ) ;
54
+ } ;
55
+ } ;
56
+ } ;
57
+
50
58
exports . onReadable = function ( s ) {
51
59
return function ( f ) {
52
60
return function ( ) {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ module Node.Stream
13
13
, setEncoding
14
14
, onReadable
15
15
, onEnd
16
+ , onFinish
16
17
, onClose
17
18
, onError
18
19
, resume
@@ -196,6 +197,13 @@ foreign import onEnd
196
197
-> Eff eff Unit
197
198
-> Eff eff Unit
198
199
200
+ -- | Listen for `finish` events.
201
+ foreign import onFinish
202
+ :: forall w eff
203
+ . Writable w eff
204
+ -> Eff eff Unit
205
+ -> Eff eff Unit
206
+
199
207
-- | Listen for `close` events.
200
208
foreign import onClose
201
209
:: forall w eff
You can’t perform that action at this time.
0 commit comments