@@ -53,6 +53,13 @@ read-only streams and the readable side of duplex streams.
53
53
Besides defining a few methods, this interface also implements the
54
54
` EventEmitterInterface ` which allows you to react to certain events.
55
55
56
+ The event callback functions MUST be a valid ` callable ` that obeys strict
57
+ parameter definitions and MUST accept event parameters exactly as documented.
58
+ The event callback functions MUST NOT throw an ` Exception ` .
59
+ The return value of the event callback functions will be ignored and has no
60
+ effect, so for performance reasons you're recommended to not return any
61
+ excessive data structures.
62
+
56
63
Every implementation of this interface MUST follow these event semantics in
57
64
order to be considered a well-behaving stream.
58
65
@@ -392,6 +399,13 @@ write-only streams and the writable side of duplex streams.
392
399
Besides defining a few methods, this interface also implements the
393
400
` EventEmitterInterface ` which allows you to react to certain events.
394
401
402
+ The event callback functions MUST be a valid ` callable ` that obeys strict
403
+ parameter definitions and MUST accept event parameters exactly as documented.
404
+ The event callback functions MUST NOT throw an ` Exception ` .
405
+ The return value of the event callback functions will be ignored and has no
406
+ effect, so for performance reasons you're recommended to not return any
407
+ excessive data structures.
408
+
395
409
Every implementation of this interface MUST follow these event semantics in
396
410
order to be considered a well-behaving stream.
397
411
@@ -721,6 +735,13 @@ Besides defining a few methods, this interface also implements the
721
735
` EventEmitterInterface ` which allows you to react to the same events defined
722
736
on the ` ReadbleStreamInterface ` and ` WritableStreamInterface ` .
723
737
738
+ The event callback functions MUST be a valid ` callable ` that obeys strict
739
+ parameter definitions and MUST accept event parameters exactly as documented.
740
+ The event callback functions MUST NOT throw an ` Exception ` .
741
+ The return value of the event callback functions will be ignored and has no
742
+ effect, so for performance reasons you're recommended to not return any
743
+ excessive data structures.
744
+
724
745
Every implementation of this interface MUST follow these event semantics in
725
746
order to be considered a well-behaving stream.
726
747
0 commit comments