 Tornado 6.0 Documentation
None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 245 页 | 885.76 KB | 1 年前3 Tornado 6.0 Documentation
None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 245 页 | 885.76 KB | 1 年前3
 Tornado 5.1 Documentation
None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 243 页 | 895.80 KB | 1 年前3 Tornado 5.1 Documentation
None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 243 页 | 895.80 KB | 1 年前3
 Tornado 6.0 Documentation
self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 869 页 | 692.83 KB | 1 年前3 Tornado 6.0 Documentation
self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 869 页 | 692.83 KB | 1 年前3
 Tornado 6.1 Documentation
None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 245 页 | 904.24 KB | 1 年前3 Tornado 6.1 Documentation
None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 245 页 | 904.24 KB | 1 年前3
 Tornado 4.5 Documentation
Documentation Tornado Documentation, Release 4.5.3 fetch_future = self.fetch_next_chunk() yield self.flush() This pattern is most usable with @gen.coroutine. If fetch_next_chunk() uses async def, then it and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop write(chunk) Writes the given chunk to the output buffer. To write the output to the network, use the flush() method below. If the given chunk is a dictionary, we write it as JSON and set the Content-Type0 码力 | 222 页 | 833.04 KB | 1 年前3 Tornado 4.5 Documentation
Documentation Tornado Documentation, Release 4.5.3 fetch_future = self.fetch_next_chunk() yield self.flush() This pattern is most usable with @gen.coroutine. If fetch_next_chunk() uses async def, then it and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop write(chunk) Writes the given chunk to the output buffer. To write the output to the network, use the flush() method below. If the given chunk is a dictionary, we write it as JSON and set the Content-Type0 码力 | 222 页 | 833.04 KB | 1 年前3
 Tornado 5.1 Documentation
self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 359 页 | 347.32 KB | 1 年前3 Tornado 5.1 Documentation
self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 359 页 | 347.32 KB | 1 年前3
 Tornado 4.5 Documentation
None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() This pattern is most usable with @gen.coroutine. If fetch_next_chunk() uses async def, then it and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop write(chunk) Writes the given chunk to the output buffer. To write the output to the network, use the flush() method below. If the given chunk is a dictionary, we write it as JSON and set the Content-Type0 码力 | 333 页 | 322.34 KB | 1 年前3 Tornado 4.5 Documentation
None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() This pattern is most usable with @gen.coroutine. If fetch_next_chunk() uses async def, then it and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop write(chunk) Writes the given chunk to the output buffer. To write the output to the network, use the flush() method below. If the given chunk is a dictionary, we write it as JSON and set the Content-Type0 码力 | 333 页 | 322.34 KB | 1 年前3
 Tornado 6.1 Documentation
self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 931 页 | 708.03 KB | 1 年前3 Tornado 6.1 Documentation
self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) yield self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 931 页 | 708.03 KB | 1 年前3
 Tornado 6.4 Documentation
None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) await self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 268 页 | 1.09 MB | 1 年前3 Tornado 6.4 Documentation
None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) await self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.2 Documentation
None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) await self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 260 页 | 1.06 MB | 1 年前3 Tornado 6.2 Documentation
None: break self.write(chunk) fetch_future = convert_yielded(self.fetch_next_chunk()) await self.flush() This is a little easier to do with decorated coroutines, because they start immediately when called: fetch_future if chunk is None: break self.write(chunk) fetch_future = self.fetch_next_chunk() yield self.flush() Looping In native coroutines, async for can be used. In older versions of Python, looping is tricky and elsewhere in Tornado are not thread-safe. In particular, methods such as write(), finish(), and flush() must only be called from the main thread. If you use multiple threads it is important to use IOLoop0 码力 | 260 页 | 1.06 MB | 1 年前3
共 20 条
- 1
- 2














