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

Tungsten Suite

IStateLockerTLocker, TStateInLockAsync Method (FuncTState, TState)

Asyncrhonously 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#
Task<TState> InLockAsync(
	Func<TState, TState> func
)

Parameters

func
Type: SystemFuncTState, TState
The function to perform

Return Value

Type: TaskTState
The result of the function
See Also