Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Add a support for new simplified generator-based syntax #42

Open
leporo opened this issue Sep 9, 2013 · 0 comments
Open

Add a support for new simplified generator-based syntax #42

leporo opened this issue Sep 9, 2013 · 0 comments
Assignees

Comments

@leporo
Copy link
Owner

leporo commented Sep 9, 2013

Return Future instances instead of calling callbacks directly.

Add the support for simplified syntax:

@gen.coroutine
def some_method(self):
    ...
    res = yield self.redis_client.get('mykey')
    ...

instead of

@gen.engine
def some_method(self):
    ...
    res = yield gen.Task(self.redis_client.get, 'mykey')
    ...

Benchmark the performance change before merging changes to master.

@ghost ghost assigned leporo Sep 9, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant