SemaphoreSlimExtensions.InLock(TType) Method (SemaphoreSlim, Func(TType))
From Tungsten Suite
Tungsten
|
|
SemaphoreSlimExtensionsInLockTType Method (SemaphoreSlim, FuncTType) |
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 TType InLock<TType>( this SemaphoreSlim this, Func<TType> func )
Parameters
- this
- Type: System.ThreadingSemaphoreSlim
The SemaphoreSlim to provide resource locking - func
- Type: SystemFuncTType
The function to perform
Type Parameters
- TType
[Missing <typeparam name="TType"/> documentation for "M:W.Threading.Lockers.SemaphoreSlimExtensions.InLock``1(System.Threading.SemaphoreSlim,System.Func{``0})"]
Return Value
Type: TType[Missing <returns> documentation for "M:W.Threading.Lockers.SemaphoreSlimExtensions.InLock``1(System.Threading.SemaphoreSlim,System.Func{``0})"]