|author||Nate Bosch <firstname.lastname@example.org>||Wed Mar 18 13:13:45 2020 -0700|
|committer||GitHub <email@example.com>||Wed Mar 18 13:13:45 2020 -0700|
Close send channel in test (#54) Without closing this channel the VM will not exit. Refactor to `async/await` so that we can close the channel only after receiving the expected items. This allows running the test directly in the VM without the test runner.
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
StreamChannels and with two-way communications in general. For documentation of these utilities, see the API docs.