Search Results for

    Show / Hide Table of Contents

    Class AsyncLock

    Asynchronous lock.

    Inheritance
    Object
    AsyncLock
    Implements
    IDisposable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: System.Reactive.Concurrency
    Assembly: System.Reactive.Core.dll
    Syntax
    public sealed class AsyncLock : IDisposable

    Methods

    | Improve this Doc View Source

    Dispose()

    Clears the work items in the queue and drops further work being queued.

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Wait(Action)

    Queues the action for execution. If the caller acquires the lock and becomes the owner, the queue is processed. If the lock is already owned, the action is queued and will get processed by the owner.

    Declaration
    public void Wait(Action action)
    Parameters
    Type Name Description
    Action action

    Action to queue for execution.

    Exceptions
    Type Condition
    ArgumentNullException

    action is null.

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX