C# Class AvalonStudio.Extensibility.Threading.JobRunner

Afficher le fichier Open project: VitalElement/AvalonStudio Class Usage Examples

Méthodes publiques

Méthode Description
InvokeAsync ( System.Action action ) : Task

Invokes a method on the main loop.

RunJobs ( ) : void

Runs continuations pushed on the loop.

RunLoop ( CancellationToken cancellationToken ) : void

Private Methods

Méthode Description
AddJob ( Job job ) : void
Post ( System.Action action ) : void

Post action that will be invoked on main thread

Method Details

InvokeAsync() public méthode

Invokes a method on the main loop.
public InvokeAsync ( System.Action action ) : Task
action System.Action The method.
Résultat Task

RunJobs() public méthode

Runs continuations pushed on the loop.
public RunJobs ( ) : void
Résultat void

RunLoop() public méthode

public RunLoop ( CancellationToken cancellationToken ) : void
cancellationToken System.Threading.CancellationToken
Résultat void