C# 클래스 UnifiedStorage.Extensions.AwaitExtensions

Extensions for working with the task asynchronous pattern (async/await).
파일 보기 프로젝트 열기: fiveninedigital/UnifiedStorage

공개 메소드들

메소드 설명
SwitchOffMainThreadAsync ( CancellationToken cancellationToken ) : TaskSchedulerAwaiter

Causes the caller who awaits this method to switch off the Main thread. It has no effect if the caller is already off the main thread.

메소드 상세

SwitchOffMainThreadAsync() 공개 정적인 메소드

Causes the caller who awaits this method to switch off the Main thread. It has no effect if the caller is already off the main thread.
public static SwitchOffMainThreadAsync ( CancellationToken cancellationToken ) : TaskSchedulerAwaiter
cancellationToken System.Threading.CancellationToken The cancellation token.
리턴 TaskSchedulerAwaiter