Method ValueOrDefault
- Namespace
- Icicle
- Assembly
- Icicle.dll
ValueOrDefault(RunToken)
Returns the ResultHandle<T> value or default
public T? ValueOrDefault(RunToken token)
Parameters
token
RunTokenreturned proof from a call to Run(RunOptions?, CancellationToken)
Returns
- T
T or default
Exceptions
- InvalidRunTokenException
if provided token is not from the same TaskScope that created this ResultHandle<T>
- Exception
if the ResultHandle<T> has faulted