Search Results for

    Show / Hide Table of Contents

    Class AsyncLock

    Inheritance
    object
    AsyncLock
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Utilities
    Assembly: Mapsui.dll
    Syntax
    public class AsyncLock

    Constructors

    | Edit this page View Source

    AsyncLock()

    Declaration
    public AsyncLock()

    Methods

    | Edit this page View Source

    Lock(CancellationToken)

    Declaration
    public IDisposable Lock(CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    IDisposable
    | Edit this page View Source

    LockAsync(CancellationToken)

    Declaration
    public Task<IDisposable> LockAsync(CancellationToken ct = default)
    Parameters
    Type Name Description
    CancellationToken ct
    Returns
    Type Description
    Task<IDisposable>
    | Edit this page View Source

    TryLock(Action, TimeSpan)

    Declaration
    public bool TryLock(Action callback, TimeSpan timeout)
    Parameters
    Type Name Description
    Action callback
    TimeSpan timeout
    Returns
    Type Description
    bool
    | Edit this page View Source

    TryLockAsync(Action, CancellationToken)

    Declaration
    public Task<bool> TryLockAsync(Action callback, CancellationToken cancel)
    Parameters
    Type Name Description
    Action callback
    CancellationToken cancel
    Returns
    Type Description
    Task<bool>
    | Edit this page View Source

    TryLockAsync(Action, TimeSpan)

    Declaration
    public Task<bool> TryLockAsync(Action callback, TimeSpan timeout)
    Parameters
    Type Name Description
    Action callback
    TimeSpan timeout
    Returns
    Type Description
    Task<bool>
    | Edit this page View Source

    TryLockAsync(Func<Task>, CancellationToken)

    Declaration
    public Task<bool> TryLockAsync(Func<Task> callback, CancellationToken cancel)
    Parameters
    Type Name Description
    Func<Task> callback
    CancellationToken cancel
    Returns
    Type Description
    Task<bool>
    | Edit this page View Source

    TryLockAsync(Func<Task>, TimeSpan)

    Declaration
    public Task<bool> TryLockAsync(Func<Task> callback, TimeSpan timeout)
    Parameters
    Type Name Description
    Func<Task> callback
    TimeSpan timeout
    Returns
    Type Description
    Task<bool>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX