StdDriverConnection class
Default implementation of DriverConnection that works with Stdin and Stdout.
- Implemented types
Constructors
-
StdDriverConnection({Stream<
List< ? inputStream, StreamSink<int> >List< ? outputStream})int> > - StdDriverConnection.forWorker(Process worker)
-
factory
Properties
Methods
-
cancel(
) → Future -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readResponse(
) → Future< WorkResponse> -
Note: This will attempts to recover from invalid proto messages by parsing
them as strings. This is a common error case for workers (they print a
message to stdout on accident). This isn't perfect however as it only
happens if the parsing throws, you can still hang indefinitely if the
MessageGrouper doesn't find what it thinks is the end of a proto
message.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeRequest(
WorkRequest request) → void -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited