Method ThrowIfFaulted
- Namespace
- Icicle
- Assembly
- Icicle.dll
ThrowIfFaulted(RunToken)
If the ResultHandle<T> has a status of Faulted it throws the Exception
public void ThrowIfFaulted(RunToken token)
Parameters
token
RunTokenreturned proof from a call to Run(RunOptions?, CancellationToken)
Exceptions
- InvalidRunTokenException
if provided token is not from the same TaskScope that created this ResultHandle<T>
- Exception
if the ResultHandle<T> has faulted