C# Class WebStreams.Server.MutuallyExclusiveTaskExecutor

The mutually exclusive task executor.
Inheritance: IDisposable
Afficher le fichier Open project: WebStreams/WebStreams.Server Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Complete ( ) : void
Résultat void

Dispose() public méthode

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

Run() public méthode

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

Schedule() public méthode

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