ReaderWriterLockSlimExtensions.InLockAsync Method (ReaderWriterLockSlim, LockTypeEnum, Action)
From Tungsten Suite
Tungsten
|
|
ReaderWriterLockSlimExtensionsInLockAsync Method (ReaderWriterLockSlim, LockTypeEnum, 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 ReaderWriterLockSlim this, LockTypeEnum lockType, Action action )
Parameters
- this
- Type: System.ThreadingReaderWriterLockSlim
The ReaderWriterLockSlim to provide resource locking - lockType
- Type: W.Threading.LockersLockTypeEnum
The type of lock to obtain - action
- Type: SystemAction
The action to perform
Return Value
Type: Task[Missing <returns> documentation for "M:W.Threading.Lockers.ReaderWriterLockSlimExtensions.InLockAsync(System.Threading.ReaderWriterLockSlim,W.Threading.Lockers.LockTypeEnum,System.Action)"]