AsyncSandboxStream

class baseten.sandbox.AsyncSandboxStream

Bases: Generic[_ItemT]

Async form of SandboxStream.

Parameters:
  • response (httpx.Response)

  • parse (Callable[[AsyncIterator[str]], AsyncGenerator[_ItemT, None]])

async close()

Stop reading and release the connection. Does nothing if already closed.

Return type:

None