C# Class WebStreams.Server.MutuallyExclusiveTaskExecutor

The mutually exclusive task executor.
Inheritance: IDisposable
Datei anzeigen Open project: WebStreams/WebStreams.Server Class Usage Examples

Public Methods

Method Description
Complete ( ) : void
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Run ( CancellationToken cancellationToken ) : Task

Invokes the executor.

Schedule ( Func action ) : void

Enqueues the provided action for execution.

Method Details

Complete() public method

public Complete ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Run() public method

Invokes the executor.
public Run ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken The cancellation task.
return Task

Schedule() public method

Enqueues the provided action for execution.
public Schedule ( Func action ) : void
action Func /// The action being invoked. ///
return void