commit | 571eb86fc7c5d95a97703adaff98a23b9d06cf33 | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Thu Feb 04 16:10:16 2016 -0800 |
committer | Natalie Weizenbaum <nweiz@google.com> | Thu Feb 04 16:10:16 2016 -0800 |
tree | 217e22bf818b613362d3f450ad77dfea35a47218 | |
parent | 66a45ffe55f8e5e59232a7484db0befe30c98c13 [diff] |
Provide more error-handling customization. This makes it easier to wrap underlying channels that don't support errors at all. R=tjblasi@google.com Review URL: https://codereview.chromium.org//1669953002 .
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.