Tornado 6.4 Documentation
Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): doc = cursor.next_object() 6.1. User’s guide Optional[str] = None, transforms: Optional[List[Type[OutputTransform]]] = None, **settings) A collection of request handlers that make up a web application. Instances of this class are callable and can corou- tines is technically asynchronous, but it is written as a single generator instead of a collection of separate functions. For example, here’s a coroutine-based handler: class GenAsyncHandler(RequestHandler):0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): doc = cursor.next_object() 6.1. User’s guide Optional[str] = None, transforms: Optional[List[Type[OutputTransform]]] = None, **settings) A collection of request handlers that make up a web application. Instances of this class are callable and can corou- tines is technically asynchronous, but it is written as a single generator instead of a collection of separate functions. For example, here’s a coroutine-based handler: class GenAsyncHandler(RequestHandler):0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): doc = cursor.next_object() 6.1. User’s guide Optional[str] = None, transforms: Optional[List[Type[OutputTransform]]] = None, **settings) A collection of request handlers that make up a web application. Instances of this class are callable and can corou- tines is technically asynchronous, but it is written as a single generator instead of a collection of separate functions. For example, here’s a coroutine-based handler: class GenAsyncHandler(RequestHandler):0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.5 DocumentationMotor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): doc = cursor.next_object() 6.1. User’s guide default_host: str | None = None, transforms: List[Type[OutputTransform]] | None = None, **settings) A collection of request handlers that make up a web application. Instances of this class are callable and can corou- tines is technically asynchronous, but it is written as a single generator instead of a collection of separate functions. For example, here’s a coroutine-based handler: class GenAsyncHandler(RequestHandler):0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.1 Documentation
Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): doc = cursor.next_object() Running in the Optional[str] = None, transforms: Op- tional[List[Type[OutputTransform]]] = None, **settings) A collection of request handlers that make up a web application. Instances of this class are callable and can corou- tines is technically asynchronous, but it is written as a single generator instead of a collection of separate functions. For example, here’s a coroutine-based handler: class GenAsyncHandler(RequestHandler):0 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 5.1 Documentation
Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): doc = cursor.next_object() Running in the class tornado.web.Application(handlers=None, default_host=None, transforms=None, **set- tings) A collection of request handlers that make up a web application. 5.2. Web framework 47 Tornado Documentation corou- tines is technically asynchronous, but it is written as a single generator instead of a collection of separate functions. For example, the following callback-based asynchronous handler: class0 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 6.0 Documentation
Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): doc = cursor.next_object() 6.1. User’s guide None, default_host: str = None, transforms: List[Type[OutputTransform]] = None, **set- tings) A collection of request handlers that make up a web application. Instances of this class are callable and can corou- tines is technically asynchronous, but it is written as a single generator instead of a collection of separate functions. For example, here’s a coroutine-based handler: class GenAsyncHandler(RequestHandler):0 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 6.2 Documentation
Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): doc = cursor.next_object() 6.1. User’s guide Optional[str] = None, transforms: Optional[List[Type[OutputTransform]]] = None, **settings) A collection of request handlers that make up a web application. Instances of this class are callable and can corou- tines is technically asynchronous, but it is written as a single generator instead of a collection of separate functions. For example, here’s a coroutine-based handler: class GenAsyncHandler(RequestHandler):0 码力 | 260 页 | 1.06 MB | 1 年前3
Tornado 6.3 Documentation
Motor: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): doc = cursor.next_object() 6.1. User’s guide Optional[str] = None, transforms: Optional[List[Type[OutputTransform]]] = None, **settings) A collection of request handlers that make up a web application. Instances of this class are callable and can corou- tines is technically asynchronous, but it is written as a single generator instead of a collection of separate functions. For example, here’s a coroutine-based handler: class GenAsyncHandler(RequestHandler):0 码力 | 264 页 | 1.06 MB | 1 年前3
Tornado 5.1 Documentation
io/en/stable/]: import motor db = motor.MotorClient().test @gen.coroutine def loop_example(collection): cursor = db.collection.find() while (yield cursor.fetch_next): doc = cursor.next_object() Running class tornado.web.Application(handlers=None, default_host=None, transforms=None, **settings) A collection of request handlers that make up a web application. Instances of this class are callable and can using coroutines is technically asynchronous, but it is written as a single generator instead of a collection of separate functions. For example, the following callback-based asynchronous handler: class0 码力 | 359 页 | 347.32 KB | 1 年前3
共 20 条
- 1
- 2













