WASIComponentWritableFuture<T> class final

Writable endpoint for WASIComponentFuture.

Properties

canComplete → bool
Whether this endpoint can still complete the future.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasPendingReader → bool
Whether a reader is currently waiting for this future.
no setter
hasPendingWriteDelivery → bool
Whether a completed value is waiting for the first reader observation.
no setter
isCancelled → bool
Whether the future has been cancelled.
no setter
isCompleted → bool
Whether the future has been completed.
no setter
isDropped → bool
Whether this endpoint has been dropped.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → void
Cancels the future and consumes this host-owned producer endpoint.
cancelPendingCopy() → void
Cancels the currently pending write copy without closing this endpoint.
cancelRequestedCopy() → void
Cancels the underlying pending write after cancellation was requested.
cancelWriteDelivery() → void
Cancels an active write delivery copy.
complete(T value) → void
Completes the future and consumes this host-owned producer endpoint.
completeForCopy(T value) → void
Completes the future for a canonical future copy operation.
completeSourceForCopy(WASIComponentAsyncCopySource<Object?> source) → void
Completes a canonical future only when a reader can accept its value.
completeSourceWhenReadForCopy(WASIComponentAsyncCopySource<Object?> source, {bool asynchronous = true, bool deferCompletion = false}) → Future<void>
Waits for a reader before loading and transferring source's value.
completeWhenRead(T value) → Future<void>
Completes the future, consumes this host-owned producer endpoint, and waits until a reader observes the value.
completeWhenReadForCopy(T value, {bool asynchronous = true, bool deferCompletion = false}) → Future<void>
Completes a canonical future copy after a reader observes the value.
dispose() → void
Force-releases this host-owned endpoint during resource teardown.
drop() → void
Drops this endpoint.
finishDeferredCopy({required bool cancelled}) → void
Applies the result when a deferred copy event is delivered.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestCopyCancellation() → void
Marks an asynchronous write copy as being cancelled.
requireCopyIdle() → void
Validates that a new canonical copy may start.
requireDroppable() → void
Validates that this writable future end may be dropped.
toString() → String
A string representation of this object.
inherited

Operators

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