SpinLockExtensions.InLockAsync Method (SpinLock, Action)

Tungsten Suite

SpinLockExtensionsInLockAsync Method (SpinLock, Action)

Asynchronously performs the action in a lock

Namespace:  W.Threading.Lockers
Assembly:  Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
Syntax
C#
public static Task InLockAsync(
	this SpinLock this,
	Action action
)

Parameters

this
Type: System.ThreadingSpinLock
The SpinLock to provide resource locking
action
Type: SystemAction
The action to perform

Return Value

Type: Task

[Missing <returns> documentation for "M:W.Threading.Lockers.SpinLockExtensions.InLockAsync(System.Threading.SpinLock,System.Action)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SpinLock. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also