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: tornado import gen, httpclient, ioloop, queues base_url = "http://www.tornadoweb.org/en/stable/" concurrency = 10 async def get_links_from_url(url): (continues on next page) 20 Chapter 6. Documentation0 码力 | 245 页 | 885.76 KB | 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: tornado import gen, httpclient, ioloop, queues base_url = "http://www.tornadoweb.org/en/stable/" concurrency = 10 async def get_links_from_url(url): """Download the page at `url` and parse it for links0 码力 | 245 页 | 904.24 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: tornado import httpclient, gen, ioloop, queues base_url = 'http://www.tornadoweb.org/en/stable/' concurrency = 10 @gen.coroutine def get_links_from_url(url): """Download the page at `url` and parse it for0 码力 | 222 页 | 833.04 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: tornado import gen, httpclient, ioloop, queues base_url = 'http://www.tornadoweb.org/en/stable/' concurrency = 10 async def get_links_from_url(url): """Download the page at `url` and parse it for links0 码力 | 243 页 | 895.80 KB | 1 年前3
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: from tornado import gen, httpclient, queues base_url = "http://www.tornadoweb.org/en/stable/" concurrency = 10 (continues on next page) 20 Chapter 6. Documentation Tornado Documentation, Release 6.20 码力 | 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: from tornado import gen, httpclient, queues base_url = "http://www.tornadoweb.org/en/stable/" concurrency = 10 (continues on next page) 20 Chapter 6. DocumentationTornado Documentation, Release 6.5.10 码力 | 272 页 | 1.12 MB | 3 月前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: from tornado import gen, httpclient, queues base_url = "http://www.tornadoweb.org/en/stable/" concurrency = 10 (continues on next page) 20 Chapter 6. Documentation Tornado Documentation, Release 6.40 码力 | 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: from tornado import gen, httpclient, queues base_url = "http://www.tornadoweb.org/en/stable/" concurrency = 10 (continues on next page) 20 Chapter 6. Documentation Tornado Documentation, Release 6.40 码力 | 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: from tornado import gen, httpclient, queues base_url = "http://www.tornadoweb.org/en/stable/" concurrency = 10 (continues on next page) 20 Chapter 6. Documentation Tornado Documentation, Release 6.40 码力 | 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: from tornado import gen, httpclient, queues base_url = "http://www.tornadoweb.org/en/stable/" concurrency = 10 (continues on next page) 20 Chapter 6. Documentation Tornado Documentation, Release 6.30 码力 | 264 页 | 1.06 MB | 1 年前3
共 20 条
- 1
- 2













