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

Class Object

python/python3/tornado/test/concurrent_test.py:151–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 @gen_test
150 def test_no_calling(self):
151 class Object(object):
152 def __init__(self):
153 self.executor = futures.thread.ThreadPoolExecutor(1)
154
155 @run_on_executor
156 def f(self):
157 return 42
158
159 o = Object()
160 answer = yield o.f()

Callers 7

test_no_callingMethod · 0.85
test_async_awaitMethod · 0.85
jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by 4

test_no_callingMethod · 0.68
test_async_awaitMethod · 0.68