Skip to content

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

NameTypeDescription
actionActionAction to queue for execution.

Exceptions

TypeCondition
System.ArgumentNullExceptionaction is null.