C# Класс GitHub.Helpers.ThreadingHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
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