C# Class PortableRx.Reactive.Concurrency.AsyncLock

Asynchronous lock.
Inheritance: IDisposable
Datei anzeigen Open project: robfe/PortableRx

Public Methods

Method Description
Dispose ( ) : void

Clears the work items in the queue and drops further work being queued.

Wait ( System.Action action ) : void

Queues the action for execution. If the caller acquires the lock and becomes the owner, the queue is processed. If the lock is already owned, the action is queued and will get processed by the owner.

Method Details

Dispose() public method

Clears the work items in the queue and drops further work being queued.
public Dispose ( ) : void
return void

Wait() public method

Queues the action for execution. If the caller acquires the lock and becomes the owner, the queue is processed. If the lock is already owned, the action is queued and will get processed by the owner.
is null.
public Wait ( System.Action action ) : void
action System.Action Action to queue for execution.
return void