Pinned Loading
-
-
-
using multi to pick values in parallel
using multi to pick values in parallel 1from tornado.gen import multi
23async def parallel_fetch(url1, url2):
4resp1, resp2 = await multi([http_client.fetch(url1),
5http_client.fetch(url2)])
-
yield decorated coroutines
yield decorated coroutines 1# decorated coroutine
2@gen.coroutine
3def a():
4b = yield c()
5#return and yield can not be used in Python 2 so raise a special exception
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.