YamuxExceptionUtils class
Utility functions for safe Yamux operations
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
safeStreamClose(
dynamic stream, {String? context}) → Future< void> - Safely closes a stream without throwing exceptions
-
safeStreamReset(
dynamic stream, {String? context}) → Future< void> - Safely resets a stream without throwing exceptions
-
withTimeout<
T> (Future< T> operation(), {Duration timeout = const Duration(seconds: 30), int? streamId, String? operationName, String? currentState}) → Future<T> - Executes an operation with a timeout and proper Yamux exception handling