SpinLockExtensions.InLockAsync(TType) Method (SpinLock, Func(TType))
From Tungsten Suite
Tungsten
|
|
SpinLockExtensionsInLockAsyncTType Method (SpinLock, FuncTType) |
Asynchronously performs the function in a lock
Namespace: W.Threading.Lockers
Assembly: Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
C#
public static Task<TType> InLockAsync<TType>( this SpinLock this, Func<TType> func )
Parameters
- this
- Type: System.ThreadingSpinLock
The SpinLock to provide resource locking - func
- Type: SystemFuncTType
The function to perform
Type Parameters
- TType
[Missing <typeparam name="TType"/> documentation for "M:W.Threading.Lockers.SpinLockExtensions.InLockAsync``1(System.Threading.SpinLock,System.Func{``0})"]
Return Value
Type: TaskTType[Missing <returns> documentation for "M:W.Threading.Lockers.SpinLockExtensions.InLockAsync``1(System.Threading.SpinLock,System.Func{``0})"]