WASIPreview3SocketOperation<T> class final

A possibly pending backend operation.

Constructors

WASIPreview3SocketOperation.completed(WASIPreview3SocketResult<T> result)
Creates an already completed operation.
WASIPreview3SocketOperation.pending(Future<WASIPreview3SocketResult<T>> future, {void disposeValue(T value)?, void cancel()?})
Creates a pending operation.

Properties

hashCode → int
The hash code for this object.
no setterinherited
resultOrNull → WASIPreview3SocketResult<T>?
Completed result, or null while pending.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose({void disposeValue(T value)?}) → void
Releases a late success value after the owning socket was dropped.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
wait() → Future<WASIPreview3SocketResult<T>>
Completes with the operation result.

Operators

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