C# 클래스 Lawo.Threading.Tasks.AsyncPump

Represents a pump that runs an asynchronous method and all its continuations on the current thread.
Some asynchronous methods expect that all its continuations are executed on the same thread. If such code needs to be run in an environment where this is not guaranteed (SynchronizationContext.Current is either null or is a SynchronizationContext object that schedules continuations on different threads as under ASP.NET) then this class can be used to force execution on a single thread.
파일 보기 프로젝트 열기: Lawo/ember-plus-sharp 1 사용 예제들

공개 메소드들

메소드 설명
Run ( Func asyncMethod ) : void

Runs asyncMethod on the current thread.

메소드 상세

Run() 공개 정적인 메소드

Runs asyncMethod on the current thread.
completed in the /// state.
public static Run ( Func asyncMethod ) : void
asyncMethod Func
리턴 void