Skip to content

M_CodeJam_Threading_AsyncLock_AcquireSync_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 1 revision

AsyncLock.AcquireSync Method (Int32)

Synchronously acquires async lock.

Namespace: CodeJam.Threading
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public IDisposable AcquireSync(
	int timeout
)

VB

Public Function AcquireSync ( 
	timeout As Integer
) As IDisposable

F#

member AcquireSync : 
        timeout : int -> IDisposable 

Parameters

 

timeout
Type: System.Int32
A number of milliseconds that represents the timeout to wait if lock already acquired, a -1 to wait indefinitely, or a 0 to return immediately.

Return Value

Type: IDisposable
An IDisposable to release the lock.

Exceptions

 

Exception Condition
TimeoutException The timeout has expired.

See Also

Reference

AsyncLock Class
AcquireSync Overload
CodeJam.Threading Namespace

Clone this wiki locally