MCPcopy Create free account
hub / github.com/brmmm3/fastthreadpool / clear

Method clear

fastthreadpool/fastthreadpool.py:708–714  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

706 self._submit(cb_child, False, (fn, islice(it, pychunksize), done_callback, unpack_args), empty_dict, False)
707
708 def clear(self):
709 self._shutdown_children = False
710 self._jobs.clear()
711 self._done.clear()
712 self._done_cnt = Semaphore(0)
713 self._failed.clear()
714 self._failed_cnt = Semaphore(0)
715
716 @property
717 def children(self):

Callers 7

_busy_lock_incMethod · 0.80
_delayed_cancelMethod · 0.80
_scheduled_cancelMethod · 0.80
cancelMethod · 0.80
mainFunction · 0.80

Calls 1

SemaphoreClass · 0.85

Tested by

no test coverage detected