Class ResultHandle<T>
- Namespace
- Icicle
- Assembly
- Icicle.dll
Represents a handle to a result produced after a Run(RunOptions?, CancellationToken) from a delegate added via Add<T>(Func<CancellationToken, ValueTask<T>>)
public sealed class ResultHandle<T> : BaseHandle
Type Parameters
T
some result
- Inheritance
-
ResultHandle<T>
- Inherited Members
Methods
- AsValueTask(RunToken)
Casts the ResultHandle<T> as a ValueTask<TResult>
- GetState(RunToken)
Returns the current state of the ResultHandle<T>
- ThrowIfFaulted(RunToken)
If the ResultHandle<T> has a status of Faulted it throws the Exception
- Value(RunToken)
Returns the ResultHandle<T> value
- ValueOrDefault(RunToken)
Returns the ResultHandle<T> value or default