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 state with the specified ID, or returns null if there is none, or the ID does not have the form of an ID. A state is returned at most once, even when it is taken by concurrent calls.

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

    The ID that AddAsync(T, CancellationToken) returned.

    CancellationToken cancellationToken

    A token to cancel the operation.

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