Table of Contents

Method Run

Namespace
Icicle
Assembly
Icicle.dll

Run(RunOptions?, CancellationToken)

Runs all added child tasks; returning a RunToken that can be used as proof to exchange for child task results via ResultHandle<T> and ResultHandle

public virtual ValueTask<RunToken> Run(TaskScope.RunOptions? options = null, CancellationToken token = default)

Parameters

options TaskScope.RunOptions?

configuration options for Run(RunOptions?, CancellationToken)

token CancellationToken

cancellation token

Returns

ValueTask<RunToken>

RunToken respresenting the completion of the TaskScope. This can be exchanged with ResultHandle<T> and ResultHandle for the result of the child task completed.

Exceptions

TaskScopeCompletedException

if Run(RunOptions?, CancellationToken) has already been called on the current TaskScope

Exception

if any of the child tasks fault and ThrowOnFault is true