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

Cannot read async data from service (from examples) #46

Open
morozovcookie opened this issue Feb 5, 2017 · 0 comments
Open

Cannot read async data from service (from examples) #46

morozovcookie opened this issue Feb 5, 2017 · 0 comments

Comments

@morozovcookie
Copy link

morozovcookie commented Feb 5, 2017

Hi. You are have a bad example, but maybe I do something wrong. When I try use code from examples

g.then([](cocaine::framework::generator<std::string>& g){std::string result = g.next(); g.map(&handler);});

I get exception when calling g.next() with text "There is no connection to service". But if I try to get data in sync mode - all is ok. I need get data from service in async mode. Can you help me?

I'm using Cocaine v0.11

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

No branches or pull requests

1 participant