{"action":"created","issue":{"url":"https://api.github.com/repos/koajs/compose/issues/35","labels_url":"https://api.github.com/repos/koajs/compose/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/koajs/compose/issues/35/comments","events_url":"https://api.github.com/repos/koajs/compose/issues/35/events","html_url":"https://github.com/koajs/compose/issues/35","id":116915113,"number":35,"title":"use compose() throw \"app.use require a generator function\"","user":{"login":"swxy","id":5645617,"avatar_url":"https://avatars.githubusercontent.com/u/5645617?v=3","gravatar_id":"","url":"https://api.github.com/users/swxy","html_url":"https://github.com/swxy","followers_url":"https://api.github.com/users/swxy/followers","following_url":"https://api.github.com/users/swxy/following{/other_user}","gists_url":"https://api.github.com/users/swxy/gists{/gist_id}","starred_url":"https://api.github.com/users/swxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swxy/subscriptions","organizations_url":"https://api.github.com/users/swxy/orgs","repos_url":"https://api.github.com/users/swxy/repos","events_url":"https://api.github.com/users/swxy/events{/privacy}","received_events_url":"https://api.github.com/users/swxy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-14T09:52:43Z","updated_at":"2015-11-27T16:45:56Z","closed_at":null,"body":"I write three generator ,` a`, `b` and `c`:\r\nuse compose:\r\n```\r\nvar all = compose([a, b, c]);\r\napp.use(all);\r\n```  \r\nrun, then throw a error:   \r\n>app.use require a generator function\r\n\r\nThen I try:\r\n```\r\napp.use(a);\r\napp.use(b);\r\napp.use(c);\r\n```\r\nIt work well. "},"comment":{"url":"https://api.github.com/repos/koajs/compose/issues/comments/160173325","html_url":"https://github.com/koajs/compose/issues/35#issuecomment-160173325","issue_url":"https://api.github.com/repos/koajs/compose/issues/35","id":160173325,"user":{"login":"tj","id":25254,"avatar_url":"https://avatars.githubusercontent.com/u/25254?v=3","gravatar_id":"","url":"https://api.github.com/users/tj","html_url":"https://github.com/tj","followers_url":"https://api.github.com/users/tj/followers","following_url":"https://api.github.com/users/tj/following{/other_user}","gists_url":"https://api.github.com/users/tj/gists{/gist_id}","starred_url":"https://api.github.com/users/tj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tj/subscriptions","organizations_url":"https://api.github.com/users/tj/orgs","repos_url":"https://api.github.com/users/tj/repos","events_url":"https://api.github.com/users/tj/events{/privacy}","received_events_url":"https://api.github.com/users/tj/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T16:45:56Z","updated_at":"2015-11-27T16:45:56Z","body":"peerDependencies :D "}}