commit | 6bfcc567159012871ec00a6e057a86c58f02e8a6 | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch1@gmail.com> | Wed Mar 18 13:13:45 2020 -0700 |
committer | GitHub <noreply@github.com> | Wed Mar 18 13:13:45 2020 -0700 |
tree | d355261c9175f3d5bb2e729beea2155217181afa | |
parent | 70433d577be02c48cb16d72d65654f3b4d82c6ed [diff] |
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 StreamChannel
s and with two-way communications in general. For documentation of these utilities, see the API docs.