Tungsten
SemaphoreSlimLockerInLockTValue Method (FuncTValue) |
Executes a function from within a SemaphoreSlim
Namespace: W.Threading.Lockers
Assembly: Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
Syntax
C#
public TValue InLock<TValue>( Func<TValue> func )
Parameters
- func
- Type: SystemFuncTValue
The function to run
Type Parameters
- TValue
- The type of return value
Return Value
Type: TValueThe result of the function call (a value of type TValue)
See Also