Icicle Icicle

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 RunToken

returned 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>

Edit this page
Created By Ben Mazzarol