StateLocker(TLocker, TState).InLock(TResult) Method (Func(TResult))

Tungsten Suite

StateLockerTLocker, TStateInLockTResult Method (FuncTResult)

Performs a function from within a lock

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

Parameters

func
Type: SystemFuncTResult
The function to run

Type Parameters

TResult

[Missing <typeparam name="TResult"/> documentation for "M:W.Threading.Lockers.StateLocker`2.InLock``1(System.Func{``0})"]

Return Value

Type: TResult

[Missing <returns> documentation for "M:W.Threading.Lockers.StateLocker`2.InLock``1(System.Func{``0})"]

Implements

ILockerInLockTResult(FuncTResult)
See Also