Buffer<T> class abstract

Used to implement the buffering strategy for a channel.

Constructors

Buffer()

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Returns true if there are no messages on the buffer. A channel calls this method whenever a new taker is registered.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

flush() List<T?>
Flushes all the messages in the buffer to a List.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(T? message) → void
Used to put new message in the buffer. Note the Buffer can choose to not store the message (e.g. a dropping buffer can drop any new message exceeding a given limit).
take() → T?
Used to retrieve any buffered message. Note the behavior of this method has to be consistent with isEmpty.
toString() String
A string representation of this object.
inherited

Operators

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