MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

25# A thread to run a function that unclogs a blocked Queue.
26class _TriggerThread(threading.Thread):
27 def __init__(self, fn, args):
28 self.fn = fn
29 self.args = args
30 self.startedEvent = threading.Event()
31 threading.Thread.__init__(self)
32
33 def run(self):
34 # 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