Skip to content

T_CodeJam_Threading_AsyncLock

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

AsyncLock Class

Lock, that can be used with async/await code.

Inheritance Hierarchy

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

Syntax

C#

public class AsyncLock

VB

Public Class AsyncLock

F#

type AsyncLock =  class end

The AsyncLock type exposes the following members.

Constructors

 

Name Description
Public method AsyncLock Initializes a new instance of the AsyncLock class
  Back to Top

Methods

 

Name Description
Public method AcquireAsync() Acquires async lock.
Public method AcquireAsync(Int32) Acquires async lock.
Public method AcquireAsync(CancellationToken) Acquires async lock.
Public method AcquireAsync(TimeSpan) Acquires async lock.
Public method AcquireAsync(Int32, CancellationToken) Acquires async lock.
Public method AcquireAsync(TimeSpan, CancellationToken) Acquires async lock.
Public method AcquireSync() Synchronously acquires async lock.
Public method AcquireSync(Int32) Synchronously acquires async lock.
Public method AcquireSync(CancellationToken) Synchronously acquires async lock.
Public method AcquireSync(TimeSpan) Synchronously acquires async lock.
Public method AcquireSync(Int32, CancellationToken) Synchronously acquires async lock.
Public method AcquireSync(TimeSpan, CancellationToken) Synchronously acquires async lock.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

See Also

Reference

CodeJam.Threading Namespace

Clone this wiki locally