.NET Client Documentation
5.5.0
Search Results for

    Show / Hide Table of Contents

    TryAcquireAsync Method

    TryAcquireAsync(int, long)

    Tries to acquire permits, if enough are available, within the specified timeout duration.

    Declaration
    Task<bool> TryAcquireAsync(int permits = 1, long timeoutMs = 0)
    Parameters
    int permits

    The number of permits to acquire.

    long timeoutMs

    The timeout duration, in milliseconds.

    Returns
    Task<bool>

    true if the permits were acquired; otherwise false.

    In this article
    Back to top Copyright © 2010-2024 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.