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

Tungsten Suite

StateLockerTLocker, TStateInLock Method (FuncTState, TState)

Performs a function from within a lock, passing in the current state and assigning the state to the function result

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

Parameters

func
Type: SystemFuncTState, TState
The function to run

Return Value

Type: TState

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

Implements

IStateLockerTLocker, TStateInLock(FuncTState, TState)
See Also