IStateLocker(TLocker, TState).InLockAsync Method (Func(TState, TState))
From Tungsten Suite
Tungsten
|
|
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
C#
Task<TState> InLockAsync( Func<TState, TState> func )
Parameters
- func
- Type: SystemFuncTState, TState
The function to perform
Return Value
Type: TaskTStateThe result of the function