StdDriverConnection class

Default implementation of DriverConnection that works with Stdin and Stdout.

Implemented types

Constructors

StdDriverConnection({Stream<List<int>>? inputStream, StreamSink<List<int>>? outputStream})
StdDriverConnection.forWorker(Process worker)
factory

Properties

done Future<void>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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