Tornado 5.1 Documentation
monotonic or Monotime add support for a monotonic clock, which improves reliability in environments where clock adjustments are frequent. No longer needed in Python 3. Platforms: Tornado should run on any 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: async def fetch_coroutine(url): http_client = AsyncHTTPClient() a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving pattern0 码力 | 243 页 | 895.80 KB | 1 年前3
 Tornado 5.1 Documentation
org/pypi/Monotime] add support for a monotonic clock, which improves reliability in environments where clock adjustments are frequent. No longer needed in Python 3. Platforms: Tornado should run on any [https://glyph.twistedmatrix.com/2014/02/unyielding.html] to reason about by reducing the number of places where a context switch can happen. Example: async def fetch_coroutine(url): http_client = AsyncHTTPClient() a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving pattern0 码力 | 359 页 | 347.32 KB | 1 年前3
 Tornado 4.5 Documentation
org/pypi/Monotime] add support for a monotonic clock, which improves reliability in environments where clock adjustements are frequent. No longer needed in Python 3.3. Platforms: Tornado should run on [https://glyph.twistedmatrix.com/2014/02/unyielding.html] to reason about by reducing the number of places where a context switch can happen. Example: from tornado import gen @gen.coroutine def fetch_coroutine(url): a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving pattern0 码力 | 333 页 | 322.34 KB | 1 年前3
 Tornado 4.5 Documentation
monotonic or Monotime add support for a monotonic clock, which improves reliability in environments where clock adjustements are frequent. No longer needed in Python 3.3. Platforms: Tornado should run on 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 @gen.coroutine def fetch_coroutine(url): a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving pattern0 码力 | 222 页 | 833.04 KB | 1 年前3
 Tornado 6.5 Documentationexpense of a thread. They also make concurrency easier to reason about by reducing the number of places where a context switch can happen. Example: async def fetch_coroutine(url): http_client = AsyncHTTPClient() a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving pattern tornado.web.Finish may be raised to ter- minate the handler without calling write_error in situations where simply returning is not convenient. 6.1. User’s guide 25Tornado Documentation, Release 6.5.1 For0 码力 | 272 页 | 1.12 MB | 3 月前3
 Tornado 6.1 Documentation
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: async def fetch_coroutine(url): http_client = AsyncHTTPClient() a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving pattern tornado.web.Finish may be raised to terminate the handler without calling write_error in situations where simply returning is not convenient. For 404 errors, use the default_handler_class Application setting0 码力 | 245 页 | 904.24 KB | 1 年前3
 Tornado 6.4 Documentation
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: async def fetch_coroutine(url): http_client = AsyncHTTPClient() a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving pattern tornado.web.Finish may be raised to ter- minate the handler without calling write_error in situations where simply returning is not convenient. 6.1. User’s guide 25 Tornado Documentation, Release 6.4 For0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.4 Documentation
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: async def fetch_coroutine(url): http_client = AsyncHTTPClient() a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving pattern tornado.web.Finish may be raised to ter- minate the handler without calling write_error in situations where simply returning is not convenient. 6.1. User’s guide 25 Tornado Documentation, Release 6.4 For0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.4 Documentation
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: async def fetch_coroutine(url): http_client = AsyncHTTPClient() a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving pattern tornado.web.Finish may be raised to ter- minate the handler without calling write_error in situations where simply returning is not convenient. 6.1. User’s guide 25 Tornado Documentation, Release 6.4 For0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.0 Documentation
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: async def fetch_coroutine(url): http_client = AsyncHTTPClient() a more complicated loop may be desirable. For example, the previous loop runs every 60+N seconds, where N is the running time of do_something(). To run exactly every 60 seconds, use the interleaving pattern tornado.web.Finish may be raised to terminate the handler without calling write_error in situations where simply returning is not convenient. For 404 errors, use the default_handler_class Application setting0 码力 | 245 页 | 885.76 KB | 1 年前3
共 20 条
- 1
 - 2
 













