commit | af36cdd0694e4a25410b82cdab6aa0fcfdb13148 | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch1@gmail.com> | Tue Jan 14 13:35:10 2020 -0800 |
committer | GitHub <noreply@github.com> | Tue Jan 14 13:35:10 2020 -0800 |
tree | e164209a7548269c3d3f5088a1f54f9f6c8732c6 | |
parent | 8ed3d2c7f041a3b34e55303dbc34825925ef20e2 [diff] |
Fix implicit casts (#49) - Add some explicit casts. - Cast a `Stream<dynamic>` to `Stream<List>` since we always expect to get a List out.
This package exposes the StreamChannel
interface, which represents a two-way communication channel. Each StreamChannel
exposes a Stream
for receiving data and a StreamSink
for sending it.
StreamChannel
helps abstract communication logic away from the underlying protocol. For example, the test
package re-uses its test suite communication protocol for both WebSocket connections to browser suites and Isolate connections to VM tests.
This package also contains utilities for dealing with StreamChannel
s and with two-way communications in general. For documentation of these utilities, see the API docs.