HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Method TakeAsync

    TakeAsync(string, CancellationToken)

    Gets and removes the value of a key, or returns null if the key has no value. A value is returned at most once, even when it is taken by concurrent calls.

    Declaration
    ValueTask<string?> TakeAsync(string key, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string key

    The key.

    CancellationToken cancellationToken

    A token to cancel the operation.

    Returns
    Type Description
    ValueTask<string>
    © Singulink. All rights reserved.