@oxia-db/client - v0.1.0
    Preparing search index...

    Interface CloseableAsyncIterable<T>

    An AsyncIterable with an explicit teardown hook. Returned by OxiaClient.getNotifications and OxiaClient.getSequenceUpdates.

    Either iterate with for await (...) and call close() when done, or break out of the loop — the async iterator's return() method delegates to close() as well.

    interface CloseableAsyncIterable<T> {
        close(): void;
    }

    Type Parameters

    • T

    Hierarchy

    • AsyncIterable<T>
      • CloseableAsyncIterable
    Index

    Methods

    Methods

    • Stop the subscription and end the iterator. Idempotent.

      Returns void