Class AsyncLock
Asynchronous lock.
Implements
Inherited Members
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive.Core.dll
Syntax
public sealed class AsyncLock : IDisposable
Methods
| Improve this Doc View SourceDispose()
Clears the work items in the queue and drops further work being queued.
Declaration
public void Dispose()
Wait(Action)
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.
Declaration
public void Wait(Action action)
Parameters
Type | Name | Description |
---|---|---|
Action | action | Action to queue for execution. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|