Tornado 6.5 Documentation
they do internally is something like this: from tornado.concurrent import Future def async_fetch_manual(url): http_client = AsyncHTTPClient() my_future = Future() fetch_future = http_client.fetch(url) tornado. gen.coroutine. This class also provides the (deprecated) stop() and wait() methods for a more manual style of testing. The test method itself must call self.wait(), and asynchronous callbacks should0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
they do internally is something like this: from tornado.concurrent import Future def async_fetch_manual(url): http_client = AsyncHTTPClient() my_future = Future() fetch_future = http_client tornado.gen.coroutine. This class also provides the (deprecated) stop() and wait() methods for a more manual style of testing. The test method itself must call self.wait(), and asynchronous callbacks should0 码力 | 437 页 | 405.14 KB | 2 月前3
共 2 条
- 1
相关搜索词