LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Graphs
  • Functional API
  • Pregel
  • Checkpointing
  • Storage
  • Caching
  • Types
  • Runtime
  • Config
  • Errors
  • Constants
  • Channels
  • Agents
LangGraph CLI
LangGraph SDK
LangGraph Supervisor
LangGraph Swarm
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
LangGraph CLI
LangGraph SDK
LangGraph Supervisor
LangGraph Swarm
Language
Theme
Pythonlanggraph_internal_queueAsyncQueue
Class●Since v0.6

AsyncQueue

Async unbounded FIFO queue with a wait() method.

Subclassed from asyncio.Queue, adding a wait() method.

Copy
AsyncQueue()

Bases

asyncio.Queue

Methods

method
wait

If queue is empty, wait until an item is available.

Copied from Queue.get(), removing the call to .get_nowait(), ie. this doesn't consume the item, just waits for it.

View source on GitHub