CancelableOperation< T> class
An asynchronous operation that can be cancelled.
The value of this operation is exposed as value. When this operation is cancelled, value won't complete either successfully or with an error. If value has already completed, cancelling the operation does nothing.
Constructors
-
CancelableOperation.fromFuture(Future<
T> inner, { FutureOr onCancel() }) -
Creates a CancelableOperation wrapping
inner
. [...]factory
Properties
Methods
-
asStream(
) → Stream< T> - Creates a Stream containing the result of this operation. [...]
-
cancel(
) → Future - Cancels this operation. [...]
-
valueOrCancellation(
[T cancellationValue ]) → Future - Creates a Future that completes when this operation completes or when it's cancelled. [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited