commit | 3d17c733ca4d6f61bbc38d6f6aedf7253fc18b62 | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch1@gmail.com> | Wed Mar 27 17:26:19 2019 -0700 |
committer | GitHub <noreply@github.com> | Wed Mar 27 17:26:19 2019 -0700 |
tree | cae72b4e14e7e4b62d6de37ce33bd1e38eb4ad1c | |
parent | e45508df5c32754426c4c9e4d797e1c0421fba77 [diff] |
Move isolate_channel to it's own import (#39) Closes #36 This allows the default import to work without triggering any warnings on the web due to transitively importing `dart:isolate`. This is required to allow restricting imports based on platform.
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.