C# Class WinRTXamlToolkit.Async.AsyncLock

Defines a critical section with a mutual-exclusion lock.
Datei anzeigen Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Public Methods

Method 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 method

Initializes a new instance of the AsyncLock class.
public AsyncLock ( ) : System
return System

LockAsync() public method

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
return Task