SendErrorDisconnected class final
No active receivers are available to receive the value.
This occurs when all receivers have been closed or dropped. The send operation is abandoned and the value is not queued.
Example:
final result = await tx.send(value);
if (result is SendErrorDisconnected) {
print('No receivers available, stopping producer');
break; // Exit producer loop
}
- Inheritance
-
- Object
- SendResult
- SendError
- SendErrorDisconnected
- Available extensions
Constructors
- SendErrorDisconnected()
-
const
Properties
- hasError → bool
-
Available on SendResult, provided by the SendResultX extension
trueif 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
trueif the send operation succeeded.no setter - isDisconnected → bool
-
Available on SendResult, provided by the SendResultX extension
trueif no receivers are available.no setter - isFailed → bool
-
Available on SendResult, provided by the SendResultX extension
trueif the operation failed due to an exception.no setter - isFull → bool
-
Available on SendResult, provided by the SendResultX extension
trueif the channel buffer was full (bounded channels only).no setter - isTimeout → bool
-
Available on SendResult, provided by the SendResultX extension
trueif 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