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

Method cb

tornado/test/simple_httpclient_test.py:231–233  ·  view source on GitHub ↗
(fut, i=i)

Source from the content-addressed store, hash-verified

229 for i in range(4):
230
231 def cb(fut, i=i):
232 seen.append(i)
233 self.stop()
234
235 client.fetch(self.get_url("/trigger")).add_done_callback(cb)
236 self.wait(condition=lambda: len(self.triggers) == 2)

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected