C# Class UnifiedStorage.Extensions.AwaitExtensions

Extensions for working with the task asynchronous pattern (async/await).
Afficher le fichier Open project: fiveninedigital/UnifiedStorage

Méthodes publiques

Méthode Description
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.

Method Details

SwitchOffMainThreadAsync() public static méthode

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.
Résultat TaskSchedulerAwaiter