SendResult class sealed

Result of a channel send operation.

Use pattern matching or extension methods to handle different outcomes:

final result = await sender.send(value);
if (result.hasSend) {
  // Success
} else if (result.isFull) {
  // Channel full, implement backpressure
}
Implementers
Available extensions

Properties

hasError bool

Available on SendResult, provided by the SendResultX extension

true if any error occurred (convenience for error handling).
no setter
hashCode int
The hash code for this object.
no setterinherited
hasSend bool

Available on SendResult, provided by the SendResultX extension

true if the send operation succeeded.
no setter
isDisconnected bool

Available on SendResult, provided by the SendResultX extension

true if no receivers are available.
no setter
isFailed bool

Available on SendResult, provided by the SendResultX extension

true if the operation failed due to an exception.
no setter
isFull bool

Available on SendResult, provided by the SendResultX extension

true if the channel buffer was full (bounded channels only).
no setter
isTimeout bool

Available on SendResult, provided by the SendResultX extension

true if the operation timed out.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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