Icicle Icicle

Method ValueOrDefault

Namespace
Icicle
Assembly
Icicle.dll

ValueOrDefault(RunToken)

Returns the ResultHandle<T> value or default

public T? ValueOrDefault(RunToken token)

Parameters

token RunToken

returned 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

Edit this page
Created By Ben Mazzarol