AsyncLock.Wait(Action) method¶
Defined in
Type: AsyncLock
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public void Wait(Action action)
Summary: 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.
Parameters
| Name | Type | Description |
|---|---|---|
action | Action | Action to queue for execution. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | action is null. |