Skip to content

Conversation

tvolkert
Copy link
Contributor

@tvolkert tvolkert commented Jul 6, 2019

A recent change to the Dart SDK updated HttpClientResponse
to implement Stream<Uint8List> rather than implementing
Stream<List<int>>.

This forwards-compatible change updates calls to
Stream.transform(StreamTransformer) to instead call the
functionally equivalent StreamTransformer.bind(Stream)
API, which puts the stream in a covariant position and
thus causes the SDK change to be non-breaking.

dart-lang/sdk#36900

A recent change to the Dart SDK updated `HttpClientResponse`
to implement `Stream<Uint8List>` rather than implementing
`Stream<List<int>>`.

This forwards-compatible chnage updates calls to
`Stream.transform(StreamTransformer)` to instead call the
functionally equivalent `StreamTransformer.bind(Stream)`
API, which puts the stream in a covariant position and
thus causes the SDK change to be non-breaking.

dart-lang/sdk#36900
@tvolkert
Copy link
Contributor Author

tvolkert commented Jul 7, 2019

ping @MichaelMarner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants