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

Method get

raiden/utils/notifying_queue.py:26–31  ·  view source on GitHub ↗

Removes and returns an item from the queue.

(self, block: bool = True, timeout: float = None)

Source from the content-addressed store, hash-verified

24 self.set()
25
26 def get(self, block: bool = True, timeout: float = None) -> T:
27 """Removes and returns an item from the queue."""
28 value = self.queue.get(block, timeout)
29 if self.queue.empty():
30 self.clear()
31 return value
32
33 def peek(self, block: bool = True, timeout: float = None) -> T:
34 return self.queue.peek(block, timeout)

Callers 15

test_queueFunction · 0.95
invokeMethod · 0.45
get_internal_nameMethod · 0.45
get_matrix_serversFunction · 0.45
exec_under_watchMethod · 0.45
subprocess_stoppedMethod · 0.45
__exit__Method · 0.45
capdict_to_configFunction · 0.45
sendMethod · 0.45
_validate_responseMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_queueFunction · 0.76