MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/test/test_queue.py:29–33  ·  view source on GitHub ↗
(self, fn, args)

Source from the content-addressed store, hash-verified

27# A thread to run a function that unclogs a blocked Queue.
28class _TriggerThread(threading.Thread):
29 def __init__(self, fn, args):
30 self.fn = fn
31 self.args = args
32 self.startedEvent = threading.Event()
33 threading.Thread.__init__(self)
34
35 def run(self):
36 # The sleep isn't necessary, but is intended to give the blocking

Callers 1

__init__Method · 0.45

Calls 1

EventMethod · 0.80

Tested by

no test coverage detected