C# Class AvalonStudio.Extensibility.Threading.JobRunner

Datei anzeigen Open project: VitalElement/AvalonStudio Class Usage Examples

Public Methods

Method 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

Method Description
AddJob ( Job job ) : void
Post ( System.Action action ) : void

Post action that will be invoked on main thread

Method Details

InvokeAsync() public method

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

RunJobs() public method

Runs continuations pushed on the loop.
public RunJobs ( ) : void
return void

RunLoop() public method

public RunLoop ( CancellationToken cancellationToken ) : void
cancellationToken System.Threading.CancellationToken
return void