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

Method callback

python/python3/tornado/test/locks_test.py:31–36  ·  view source on GitHub ↗
(_)

Source from the content-addressed store, hash-verified

29 """Record the resolution of a Future returned by Condition.wait."""
30
31 def callback(_):
32 if not future.result():
33 # wait() resolved to False, meaning it timed out.
34 self.history.append("timeout")
35 else:
36 self.history.append(key)
37
38 future.add_done_callback(callback)
39

Callers

nothing calls this directly

Calls 2

resultMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected