Skip to content

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

@morozovcookie

Description

@morozovcookie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions