C# Class WinRTXamlToolkit.Async.AsyncLock

Defines a critical section with a mutual-exclusion lock.
Afficher le fichier Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Méthodes publiques

Méthode Description
AsyncLock ( ) : System

Initializes a new instance of the AsyncLock class.

LockAsync ( ) : Task

Waits for an open slot, then returns a disposable Releaser struct to be used in a using block marking the critical section.

Method Details

AsyncLock() public méthode

Initializes a new instance of the AsyncLock class.
public AsyncLock ( ) : System
Résultat System

LockAsync() public méthode

Waits for an open slot, then returns a disposable Releaser struct to be used in a using block marking the critical section.
public LockAsync ( ) : Task
Résultat Task