MCPcopy Create free account
hub / github.com/EasyIME/PIME / loop_briefly

Method loop_briefly

python/python3/tornado/test/locks_test.py:40–48  ·  view source on GitHub ↗

Run all queued callbacks on the IOLoop. In these tests, this method is used after calling notify() to preserve the pre-5.0 behavior in which callbacks ran synchronously.

(self)

Source from the content-addressed store, hash-verified

38 future.add_done_callback(callback)
39
40 def loop_briefly(self):
41 """Run all queued callbacks on the IOLoop.
42
43 In these tests, this method is used after calling notify() to
44 preserve the pre-5.0 behavior in which callbacks ran
45 synchronously.
46 """
47 self.io_loop.add_callback(self.stop)
48 self.wait()
49
50 def test_repr(self):
51 c = locks.Condition()

Callers 3

test_notify_1Method · 0.95
test_notify_nMethod · 0.95
test_notify_allMethod · 0.95

Calls 2

add_callbackMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected