SemaphoreSlimExtensions.InLockAsync Method (SemaphoreSlim, Action)
From Tungsten Suite
Tungsten
|
|
SemaphoreSlimExtensionsInLockAsync Method (SemaphoreSlim, Action) |
Asynchronously performs the action in a lock
Namespace: W.Threading.Lockers
Assembly: Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
C#
public static Task InLockAsync( this SemaphoreSlim this, Action action )
Parameters
- this
- Type: System.ThreadingSemaphoreSlim
The SemaphoreSlim to provide resource locking - action
- Type: SystemAction
The action to perform
Return Value
Type: Task[Missing <returns> documentation for "M:W.Threading.Lockers.SemaphoreSlimExtensions.InLockAsync(System.Threading.SemaphoreSlim,System.Action)"]