ILocker.InLock(TResult) Method (Func(TResult))

Tungsten Suite

ILockerInLockTResult Method (FuncTResult)

Perform some function in a lock

Namespace:  W.Threading.Lockers
Assembly:  Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
Syntax
C#
TResult InLock<TResult>(
	Func<TResult> func
)

Parameters

func
Type: SystemFuncTResult
The function to perform

Type Parameters

TResult
The result Type

Return Value

Type: TResult
The result of the function
See Also