Reciever<T> class

The recieving-half of channel. Recievers do not close if the Sender sends an error.

Constructors

Reciever(Stream<T> stream)

Properties

hashCode int
The hash code for this object.
no setterinherited
isClosed bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

iter() RIterator<T>
Returns an RIterator that drains the current buffer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recv() Future<Result<T, RecvError>>
Attempts to wait for a value on this receiver, returning Err of:
recvTimeout(Duration timeLimit) Future<Result<T, RecvTimeoutError>>
Attempts to wait for a value on this receiver with a time limit, returning Err of:
stream() Stream<T>
Returns a Stream of values ending once DisconnectedError is yielded.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited