Table of Contents

Interface IMultipleTasksExecute

Namespace
TCSystem.Thread
Assembly
TCSystem.Thread.dll

Executes actions with a bounded degree of concurrency.

public interface IMultipleTasksExecute

Methods

ExecuteCommand(Action)

Queues an action after a concurrency slot becomes available.

void ExecuteCommand(Action action)

Parameters

action Action

ExecuteCommand(Action, CancellationToken)

Queues an action after a concurrency slot becomes available, observing cancellation while waiting.

void ExecuteCommand(Action action, CancellationToken token)

Parameters

action Action
token CancellationToken

WaitAllDone()

Blocks until every queued action has completed.

void WaitAllDone()

WaitAllDone(CancellationToken)

Blocks until every queued action has completed or cancellation is requested.

void WaitAllDone(CancellationToken token)

Parameters

token CancellationToken