-
Notifications
You must be signed in to change notification settings - Fork 36
M_CodeJam_Threading_AsyncLock_AcquireSync_3
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(
CancellationToken cancellation
)
VB
Public Function AcquireSync (
cancellation As CancellationToken
) As IDisposable
F#
member AcquireSync :
cancellation : CancellationToken -> IDisposable
- cancellation
- Type: System.Threading.CancellationToken
The CancellationToken token to observe.
Type: IDisposable
An IDisposable to release the lock.
Exception | Condition |
---|---|
OperationCanceledException | The token has had cancellation requested. |
AsyncLock Class
AcquireSync Overload
CodeJam.Threading Namespace