C# 클래스 GitHub.Helpers.ThreadingHelper

파일 보기 프로젝트 열기: github/VisualStudio

공개 메소드들

메소드 설명
SwitchToMainThreadAsync ( ) : IAwaitable

Switch to the UI thread using ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync Auto-disables switching when running in unit test mode

SwitchToPoolThreadAsync ( TaskScheduler scheduler ) : IAwaitable

Switch to a thread pool background thread if the current thread isn't one, otherwise does nothing Auto-disables switching when running in unit test mode

메소드 상세

SwitchToMainThreadAsync() 공개 정적인 메소드

Switch to the UI thread using ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync Auto-disables switching when running in unit test mode
public static SwitchToMainThreadAsync ( ) : IAwaitable
리턴 IAwaitable

SwitchToPoolThreadAsync() 공개 정적인 메소드

Switch to a thread pool background thread if the current thread isn't one, otherwise does nothing Auto-disables switching when running in unit test mode
public static SwitchToPoolThreadAsync ( TaskScheduler scheduler ) : IAwaitable
scheduler System.Threading.Tasks.TaskScheduler
리턴 IAwaitable