ReaderWriterLocker(TState).InLockAsync Method (LockTypeEnum, Action(TState))

Tungsten Suite

ReaderWriterLockerTStateInLockAsync Method (LockTypeEnum, ActionTState)

Executes an action from within a ReaderWriterLockSlim

Namespace:  W.Threading.Lockers
Assembly:  Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
Syntax
C#
public Task InLockAsync(
	LockTypeEnum lockType,
	Action<TState> action
)

Parameters

lockType
Type: W.Threading.LockersLockTypeEnum
Specifies whether to use a Read or Write lock
action
Type: SystemActionTState
The action to run

Return Value

Type: Task

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

Implements

IReaderWriterStateLockerTStateInLockAsync(LockTypeEnum, ActionTState)
See Also