Show / Hide Table of Contents

Struct AsyncLock.Holder

Represents acquired asynchronous lock.

Implements
IDisposable
Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
ValueType.ToString()
Object.Equals(Object, Object)
Object.GetType()
Object.ReferenceEquals(Object, Object)
Namespace: DotNext.Threading
Assembly: DotNext.Threading.dll
Syntax
public struct Holder : IDisposable
Remarks

The lock can be released by calling Dispose().

Properties

| Improve this Doc View Source

IsEmpty

Gets a value indicating that this object doesn't hold the lock.

Declaration
public bool IsEmpty { get; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

Dispose()

Releases the acquired lock.

Declaration
public void Dispose()
Remarks

This object is not reusable after calling of this method.

Operators

| Improve this Doc View Source

Implicit(AsyncLock.Holder to Boolean)

Indicates that the object holds successfully acquired lock.

Declaration
public static implicit operator bool (in AsyncLock.Holder holder)
Parameters
Type Name Description
AsyncLock.Holder holder

The lock holder.

Returns
Type Description
Boolean

true, if the object holds successfully acquired lock; otherwise, false.

Implements

System.IDisposable

Extension Methods

Sequence.Skip<TEnumerator, T>(ref TEnumerator, Int32)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX