MonitorLocker.InLock(TValue) Method (Func(TValue))

Tungsten Suite

MonitorLockerInLockTValue Method (FuncTValue)

Executes a function from within a Monitor

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: TValue
The result of the function call (a value of type TValue)
See Also