MCPcopy
hub / github.com/tornadoweb/tornado / target

Method target

tornado/test/ioloop_test.py:79–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77
78 def test_add_callback_wakeup_other_thread(self):
79 def target():
80 # sleep a bit to let the ioloop go into its poll loop
81 time.sleep(0.01)
82 self.stop_time = time.time()
83 self.io_loop.add_callback(self.stop)
84
85 thread = threading.Thread(target=target)
86 self.io_loop.add_callback(thread.start)

Callers

nothing calls this directly

Calls 5

timeMethod · 0.80
add_callbackMethod · 0.45
startMethod · 0.45
setMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected