C# 클래스 AvalonStudio.Extensibility.Threading.JobRunner

파일 보기 프로젝트 열기: VitalElement/AvalonStudio 1 사용 예제들

공개 메소드들

메소드 설명
InvokeAsync ( System.Action action ) : Task

Invokes a method on the main loop.

RunJobs ( ) : void

Runs continuations pushed on the loop.

RunLoop ( CancellationToken cancellationToken ) : void

비공개 메소드들

메소드 설명
AddJob ( Job job ) : void
Post ( System.Action action ) : void

Post action that will be invoked on main thread

메소드 상세

InvokeAsync() 공개 메소드

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

RunJobs() 공개 메소드

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

RunLoop() 공개 메소드

public RunLoop ( CancellationToken cancellationToken ) : void
cancellationToken System.Threading.CancellationToken
리턴 void