LockUtilities..::..Acquire Method

Acquires a semaphore as a blocking operation. When this is disposed, the semaphore will be released.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public static IDisposable Acquire(
	SemaphoreSlim semaphore
)
Public Shared Function Acquire ( _
	semaphore As SemaphoreSlim _
) As IDisposable

Parameters

semaphore
Type: SemaphoreSlim
The semaphore.

Return Value

IDisposable.