MCPcopy Create free account
hub / github.com/C3ting/ARL / __init__

Method __init__

app/services/baseThread.py:67–74  ·  view source on GitHub ↗
(self, fun, items, arg=None, concurrency=6)

Source from the content-addressed store, hash-verified

65
66class ThreadMap(BaseThread):
67 def __init__(self, fun, items, arg=None, concurrency=6):
68 super(ThreadMap, self).__init__(targets=items, concurrency=concurrency)
69 if not callable(fun):
70 raise TypeError("fun must be callable.")
71
72 self._arg = arg
73 self._fun = fun
74 self._result_map = {}
75
76 def work(self, item):
77 if self._arg:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected