Tornado 6.2 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 6.5 Coroutines and concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 6.6 Integration are almost as simple as synchronous code, but without the expense of a thread. They also make concurrency easier to reason about by reducing the number of places where a context switch can happen. Example: coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated coroutines can start0 码力 | 260 页 | 1.06 MB | 1 年前3
Tornado 6.5 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 6.5 Coroutines and concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 6.6 Integration are almost as simple as synchronous code, but without the expense of a thread. They also make concurrency easier to reason about by reducing the number of places where a context switch can happen. Example: coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated coroutines can start0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.0 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 6.5 Coroutines and concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 6.6 Integration are almost as simple as synchronous code, but without the expense of a thread. They also make concurrency easier to reason about by reducing the number of places where a context switch can happen. Example: coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated coroutines can start0 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 6.4 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 6.5 Coroutines and concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 6.6 Integration are almost as simple as synchronous code, but without the expense of a thread. They also make concurrency easier to reason about by reducing the number of places where a context switch can happen. Example: coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated coroutines can start0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 6.5 Coroutines and concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 6.6 Integration are almost as simple as synchronous code, but without the expense of a thread. They also make concurrency easier to reason about by reducing the number of places where a context switch can happen. Example: coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated coroutines can start0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 6.5 Coroutines and concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 6.6 Integration are almost as simple as synchronous code, but without the expense of a thread. They also make concurrency easier to reason about by reducing the number of places where a context switch can happen. Example: coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated coroutines can start0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.3 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 6.5 Coroutines and concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 6.6 Integration are almost as simple as synchronous code, but without the expense of a thread. They also make concurrency easier to reason about by reducing the number of places where a context switch can happen. Example: coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated coroutines can start0 码力 | 264 页 | 1.06 MB | 1 年前3
Tornado 6.1 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 6.5 Coroutines and concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 6.6 Integration are almost as simple as synchronous code, but without the expense of a thread. They also make concurrency easier to reason about by reducing the number of places where a context switch can happen. Example: coroutines: – are generally faster. – can use async for and async with statements which make some patterns much simpler. – do not run at all unless you await or yield them. Decorated coroutines can start0 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 5.1 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 5.5 Coroutines and concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 5.6 Integration are almost as simple as synchronous code, but without the expense of a thread. They also make concurrency easier to reason about by reducing the number of places where a context switch can happen. Example: generally faster. • Native coroutines can use async for and async with statements which make some patterns much simpler. • Native coroutines do not run at all unless you await or yield them. Decorated coroutines0 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 4.5 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 4.5 Coroutines and concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 4.6 Integration are almost as simple as synchronous code, but without the expense of a thread. They also make concurrency easier to reason about by reducing the number of places where a context switch can happen. Example: we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1, 0)) Coroutine patterns Interaction with callbacks To interact with asynchronous code that uses callbacks instead of Future0 码力 | 222 页 | 833.04 KB | 1 年前3
共 408 条
- 1
- 2
- 3
- 4
- 5
- 6
- 41













