MCPcopy
hub / github.com/raiden-network/raiden / put

Method put

raiden/utils/notifying_queue.py:21–24  ·  view source on GitHub ↗

Add new item to the queue.

(self, item: T)

Source from the content-addressed store, hash-verified

19 self.set()
20
21 def put(self, item: T) -> None:
22 """Add new item to the queue."""
23 self.queue.put(item)
24 self.set()
25
26 def get(self, block: bool = True, timeout: float = None) -> T:
27 """Removes and returns an item from the queue."""

Callers 1

test_queueFunction · 0.95

Calls 1

setMethod · 0.80

Tested by 1

test_queueFunction · 0.76