Struct AsyncLock.Holder
Represents acquired asynchronous lock.
Implements
Inherited Members
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 SourceIsEmpty
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 SourceDispose()
Releases the acquired lock.
Declaration
public void Dispose()
Remarks
This object is not reusable after calling of this method.
Operators
| Improve this Doc View SourceImplicit(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. |