{"action":"created","issue":{"url":"https://api.github.com/repos/zeromq/azmq/issues/67","labels_url":"https://api.github.com/repos/zeromq/azmq/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/zeromq/azmq/issues/67/comments","events_url":"https://api.github.com/repos/zeromq/azmq/issues/67/events","html_url":"https://github.com/zeromq/azmq/issues/67","id":59294005,"number":67,"title":"Match asio support for futures and coroutines","user":{"login":"ahundt","id":55744,"avatar_url":"https://avatars.githubusercontent.com/u/55744?v=3","gravatar_id":"","url":"https://api.github.com/users/ahundt","html_url":"https://github.com/ahundt","followers_url":"https://api.github.com/users/ahundt/followers","following_url":"https://api.github.com/users/ahundt/following{/other_user}","gists_url":"https://api.github.com/users/ahundt/gists{/gist_id}","starred_url":"https://api.github.com/users/ahundt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahundt/subscriptions","organizations_url":"https://api.github.com/users/ahundt/orgs","repos_url":"https://api.github.com/users/ahundt/repos","events_url":"https://api.github.com/users/ahundt/events{/privacy}","received_events_url":"https://api.github.com/users/ahundt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-27T21:03:47Z","updated_at":"2015-02-28T16:27:26Z","closed_at":null,"body":"There are a few items from asio I was hoping to use that don't appear to be supported yet, unless I am using things incorrectly. Thanks for taking a look!\r\n\r\nCoroutine\r\n--------------\r\n[asio coroutine + spawn overview](http://www.boost.org/doc/libs/1_57_0/doc/html/boost_asio/overview/core/spawn.html)\r\n[asio spawn reference](http://www.boost.org/doc/libs/1_57_0/doc/html/boost_asio/reference/spawn.html)\r\n\r\nI saw spawn exists in actor.hpp, but that appears to be for a different purpose, unless I misunderstood.\r\n\r\nHere is an [example I tried to create based of the asio echo_server.cpp](https://gist.github.com/ahundt/a436d1506b282664ec9a)\r\n\r\nFutures\r\n----------\r\n\r\n[asio futures overview](http://www.boost.org/doc/libs/1_57_0/doc/html/boost_asio/overview/cpp2011/futures.html)\r\n[asio futures example](http://www.boost.org/doc/libs/1_57_0/doc/html/boost_asio/example/cpp11/futures/daytime_client.cpp)"},"comment":{"url":"https://api.github.com/repos/zeromq/azmq/issues/comments/76532960","html_url":"https://github.com/zeromq/azmq/issues/67#issuecomment-76532960","issue_url":"https://api.github.com/repos/zeromq/azmq/issues/67","id":76532960,"user":{"login":"ahundt","id":55744,"avatar_url":"https://avatars.githubusercontent.com/u/55744?v=3","gravatar_id":"","url":"https://api.github.com/users/ahundt","html_url":"https://github.com/ahundt","followers_url":"https://api.github.com/users/ahundt/followers","following_url":"https://api.github.com/users/ahundt/following{/other_user}","gists_url":"https://api.github.com/users/ahundt/gists{/gist_id}","starred_url":"https://api.github.com/users/ahundt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahundt/subscriptions","organizations_url":"https://api.github.com/users/ahundt/orgs","repos_url":"https://api.github.com/users/ahundt/repos","events_url":"https://api.github.com/users/ahundt/events{/privacy}","received_events_url":"https://api.github.com/users/ahundt/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T16:27:26Z","updated_at":"2015-02-28T16:27:26Z","body":"Ok, those are good reasons not to use it. I was using this as an opportunity to learn some new C++11 code, but ended up with a slightly more conventional implementation for my test. If the conventional implementation is known to be faster as of now then I will stick to that!\r\n\r\nPerhaps on the boost mailing list I (or you if you use the list and would prefer it) should suggest adding a note about the performance concerns of these new features on the documentation."}}