Method ThrowIfFaulted
- Namespace
- Icicle
- Assembly
- Icicle.dll
ThrowIfFaulted(RunToken)
If the ResultHandle 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
- Exception
if the ResultHandle has faulted