IStateLocker(TLocker, TState).InLock Method (Func(TState, TState))

Tungsten Suite

IStateLockerTLocker, TStateInLock Method (FuncTState, TState)

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#
TState InLock(
	Func<TState, TState> func
)

Parameters

func
Type: SystemFuncTState, TState
The function to perform

Return Value

Type: TState
The result of the function
See Also