{"action":"created","issue":{"url":"https://api.github.com/repos/koajs/koa/issues/415","labels_url":"https://api.github.com/repos/koajs/koa/issues/415/labels{/name}","comments_url":"https://api.github.com/repos/koajs/koa/issues/415/comments","events_url":"https://api.github.com/repos/koajs/koa/issues/415/events","html_url":"https://github.com/koajs/koa/issues/415","id":57754689,"number":415,"title":"es7 async function feedback","user":{"login":"jonathanong","id":643505,"avatar_url":"https://avatars.githubusercontent.com/u/643505?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanong","html_url":"https://github.com/jonathanong","followers_url":"https://api.github.com/users/jonathanong/followers","following_url":"https://api.github.com/users/jonathanong/following{/other_user}","gists_url":"https://api.github.com/users/jonathanong/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanong/subscriptions","organizations_url":"https://api.github.com/users/jonathanong/orgs","repos_url":"https://api.github.com/users/jonathanong/repos","events_url":"https://api.github.com/users/jonathanong/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanong/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/koajs/koa/labels/help%20wanted","name":"help wanted","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"jonathanong","id":643505,"avatar_url":"https://avatars.githubusercontent.com/u/643505?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanong","html_url":"https://github.com/jonathanong","followers_url":"https://api.github.com/users/jonathanong/followers","following_url":"https://api.github.com/users/jonathanong/following{/other_user}","gists_url":"https://api.github.com/users/jonathanong/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanong/subscriptions","organizations_url":"https://api.github.com/users/jonathanong/orgs","repos_url":"https://api.github.com/users/jonathanong/repos","events_url":"https://api.github.com/users/jonathanong/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanong/received_events","type":"User","site_admin":false},"milestone":null,"comments":50,"created_at":"2015-02-16T00:48:49Z","updated_at":"2015-08-05T17:15:59Z","closed_at":null,"body":"es7 async functions are now supported when you enabled `app.experimental = true`. it uses https://github.com/thenables/composition. however, the last time i benchmarked it, it was significantly slower.\r\n\r\nplease provide feedback and maybe do some benchmarks and performance improvements so we can one day support es7 async functions by default without sacrificing anything :)"},"comment":{"url":"https://api.github.com/repos/koajs/koa/issues/comments/128079593","html_url":"https://github.com/koajs/koa/issues/415#issuecomment-128079593","issue_url":"https://api.github.com/repos/koajs/koa/issues/415","id":128079593,"user":{"login":"elgerlambert","id":1628796,"avatar_url":"https://avatars.githubusercontent.com/u/1628796?v=3","gravatar_id":"","url":"https://api.github.com/users/elgerlambert","html_url":"https://github.com/elgerlambert","followers_url":"https://api.github.com/users/elgerlambert/followers","following_url":"https://api.github.com/users/elgerlambert/following{/other_user}","gists_url":"https://api.github.com/users/elgerlambert/gists{/gist_id}","starred_url":"https://api.github.com/users/elgerlambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elgerlambert/subscriptions","organizations_url":"https://api.github.com/users/elgerlambert/orgs","repos_url":"https://api.github.com/users/elgerlambert/repos","events_url":"https://api.github.com/users/elgerlambert/events{/privacy}","received_events_url":"https://api.github.com/users/elgerlambert/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T17:15:59Z","updated_at":"2015-08-05T17:15:59Z","body":"I was experimenting with koa + async/await and ran into the same issues with routing as described above (and backed off as a result). Happy to see this discussion taking place!\r\n\r\nIf a router switches to composition will it lose it's support for generators? How much buy-in is required to make that transition? Fixing koajs/compose#26 sounds like a much smoother transition path or is that not really an issue (just bump a major version and make the switch?)?"}}