SpinLocker.InLockAsync(TResult) Method (Func(TResult))

Tungsten Suite

SpinLockerInLockAsyncTResult Method (FuncTResult)

Performs a function from within a SpinLock

Namespace:  W.Threading.Lockers
Assembly:  Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
Syntax
C#
public Task<TResult> InLockAsync<TResult>(
	Func<TResult> func
)

Parameters

func
Type: SystemFuncTResult
The function to run

Type Parameters

TResult
The type of return value

Return Value

Type: TaskTResult
The result of the function call (a value of type TValue)

Implements

ILockerInLockAsyncTResult(FuncTResult)
See Also