C# Класс UnifiedStorage.Extensions.AwaitExtensions

Extensions for working with the task asynchronous pattern (async/await).
Показать файл Открыть проект

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

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