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

Method copy

raiden/utils/notifying_queue.py:39–46  ·  view source on GitHub ↗

Copies the current queue items.

(self)

Source from the content-addressed store, hash-verified

37 return len(self.queue)
38
39 def copy(self) -> List[T]:
40 """Copies the current queue items."""
41 copy = self.queue.copy()
42
43 result = []
44 while not copy.empty():
45 result.append(copy.get_nowait())
46 return result
47
48 def __repr__(self) -> str:
49 return f"NotifyingQueue(id={id(self)}, num_items={len(self.queue)})"

Callers 15

test_queueFunction · 0.95
_run_pip_compileFunction · 0.80
wait_for_reachableFunction · 0.80
mainFunction · 0.80
startMethod · 0.80
stopMethod · 0.80
start_transportFunction · 0.80
cli_argsFunction · 0.80

Calls

no outgoing calls

Tested by 10

test_queueFunction · 0.76
wait_for_reachableFunction · 0.64
mainFunction · 0.64
start_transportFunction · 0.64
cli_argsFunction · 0.64