@@ -34,7 +34,7 @@ abstract interface class IOSink implements StreamSink<List<int>>, StringSink {
34
34
/// The [encoding] does not apply to this method, and the [data] list is passed
35
35
/// directly to the target consumer as a stream event.
36
36
///
37
- /// This function must not be called when a stream is currently being added
37
+ /// This method must not be called when a stream is currently being added
38
38
/// using [addStream] .
39
39
///
40
40
/// This operation is non-blocking. See [flush] or [done] for how to get any
@@ -78,7 +78,7 @@ abstract interface class IOSink implements StreamSink<List<int>>, StringSink {
78
78
79
79
/// Passes the error to the target consumer as an error event.
80
80
///
81
- /// This function must not be called when a stream is currently being added
81
+ /// This method must not be called when a stream is currently being added
82
82
/// using [addStream] .
83
83
///
84
84
/// This operation is non-blocking. See [flush] or [done] for how to get any
@@ -93,8 +93,8 @@ abstract interface class IOSink implements StreamSink<List<int>>, StringSink {
93
93
/// If the stream contains an error, the `addStream` ends at the error,
94
94
/// and the returned future completes with that error.
95
95
///
96
- /// This function must not be called when a stream is currently being added
97
- /// using this function .
96
+ /// This method must not be called when a stream is currently being added
97
+ /// using this method .
98
98
Future addStream (Stream <List <int >> stream);
99
99
100
100
/// Returns a [Future] that completes once all buffered data is accepted by the
0 commit comments