MCPcopy Create free account
hub / github.com/langchain-ai/langgraph / put

Method put

libs/langgraph/langgraph/utils/queue.py:85–92  ·  view source on GitHub ↗

Put the item on the queue. The optional 'block' and 'timeout' arguments are ignored, as this method never blocks. They are provided for compatibility with the Queue class.

(self, item, block=True, timeout=None)

Source from the content-addressed store, hash-verified

83 self._count = Semaphore(0)
84
85 def put(self, item, block=True, timeout=None):
86 """Put the item on the queue.
87
88 The optional 'block' and 'timeout' arguments are ignored, as this method
89 never blocks. They are provided for compatibility with the Queue class.
90 """
91 self._queue.append(item)
92 self._count.release()
93
94 def get(self, block=True, timeout=None):
95 """Remove and return an item from the queue.

Callers 3

streamMethod · 0.95
update_stateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected