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