Method AsValueTask
- Namespace
- Icicle
- Assembly
- Icicle.dll
AsValueTask(RunToken)
Casts the ResultHandle<T> as a ValueTask<TResult>
public ValueTask<T> AsValueTask(RunToken token)
Parameters
token
RunTokenreturned proof from a call to Run(RunOptions?, CancellationToken)
Returns
- ValueTask<T>
Exceptions
- InvalidRunTokenException
if provided token is not from the same TaskScope that created this ResultHandle<T>