ILocker.InLockAsync(TResult) Method (Func(TResult))
From Tungsten Suite
Tungsten
|
|
ILockerInLockAsyncTResult Method (FuncTResult) |
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<TResult> InLockAsync<TResult>( Func<TResult> func )
Parameters
- func
- Type: SystemFuncTResult
The function to perform
Type Parameters
- TResult
- The result Type
Return Value
Type: TaskTResultThe result of the function