diff --git a/pkgs/async/lib/src/byte_collector.dart b/pkgs/async/lib/src/byte_collector.dart index a7a54358..0c937616 100644 --- a/pkgs/async/lib/src/byte_collector.dart +++ b/pkgs/async/lib/src/byte_collector.dart @@ -42,7 +42,7 @@ CancelableOperation collectBytesCancelable( /// so it can cancel the operation. T _collectBytes(Stream> source, T Function(StreamSubscription>, Future) result) { - var bytes = BytesBuilder(); + var bytes = BytesBuilder(copy: false); var completer = Completer.sync(); var subscription = source.listen(bytes.add, onError: completer.completeError, onDone: () {