Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return latest value #43

Closed
wants to merge 3 commits into from
Closed

return latest value #43

wants to merge 3 commits into from

Conversation

smmoosavi
Copy link
Contributor

so we can get value in co-returned promise

var fn = co.wrap(compose(middleware));
fn().then(function (val) {
    console.log(val)
});

@jonathanong
Copy link
Member

anyone object?

@jonathanong
Copy link
Member

can you add a test for this?

@smmoosavi
Copy link
Contributor Author

should I create same PR for next branch?

@jonathanong
Copy link
Member

yeah that would be great

@smmoosavi smmoosavi deleted the patch-1 branch March 4, 2016 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants