ADK for TypeScript: API Reference
    Preparing search index...

    Class LiveRequestQueue

    Queue used to send LiveRequest in a live (bidirectional streaming) way.

    Constructors

    Methods

    • Retrieves a request from the queue. If the queue is empty, it will wait until a request is available.

      Parameters

      • OptionalabortSignal: AbortSignal

        When provided, a parked (pending) read is released by rejecting with an abort error once the signal fires. The live send loop passes the connection's abort signal so a waiter is not stranded across reconnect/teardown, where it could otherwise steal a request from the next connection's send loop.

      Returns Promise<LiveRequest>

      A promise that resolves with the next available request.