-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Threading_AsyncLock_AcquireSync_4
Andrew Koryavchenko edited this page Jun 17, 2018
·
1 revision
Synchronously acquires async lock.
Namespace: CodeJam.Threading
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public IDisposable AcquireSync(
TimeSpan timeout
)
VB
Public Function AcquireSync (
timeout As TimeSpan
) As IDisposable
F#
member AcquireSync :
timeout : TimeSpan -> IDisposable
- timeout
- Type: System.TimeSpan
A TimeSpan that represents the timeout to wait if lock already acquired, a TimeSpan that represents -1 milliseconds to wait indefinitely, or a TimeSpan that represents 0 milliseconds to return immediately.
Type: IDisposable
An IDisposable to release the lock.
Exception | Condition |
---|---|
TimeoutException | The timeout has expired. |
AsyncLock Class
AcquireSync Overload
CodeJam.Threading Namespace