(self, fun, items, arg=None, concurrency=6)
| 65 | |
| 66 | class 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: |
nothing calls this directly
no outgoing calls
no test coverage detected