ReaderWriterLocker.InLockAsync(TResult) Method (Func(TResult))

Tungsten Suite

ReaderWriterLockerInLockAsyncTResult Method (FuncTResult)

Asynchronously performs the function in a read lock

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 action to perform

Type Parameters

TResult

[Missing <typeparam name="TResult"/> documentation for "M:W.Threading.Lockers.ReaderWriterLocker.InLockAsync``1(System.Func{``0})"]

Return Value

Type: TaskTResult

[Missing <returns> documentation for "M:W.Threading.Lockers.ReaderWriterLocker.InLockAsync``1(System.Func{``0})"]

Implements

ILockerInLockAsyncTResult(FuncTResult)
See Also