{"action":"created","issue":{"url":"https://api.github.com/repos/adonisjs/adonis-framework/issues/322","repository_url":"https://api.github.com/repos/adonisjs/adonis-framework","labels_url":"https://api.github.com/repos/adonisjs/adonis-framework/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/adonisjs/adonis-framework/issues/322/comments","events_url":"https://api.github.com/repos/adonisjs/adonis-framework/issues/322/events","html_url":"https://github.com/adonisjs/adonis-framework/issues/322","id":183275550,"number":322,"title":"Issue with yielding in callbacks","user":{"login":"Perfect7M","id":5896181,"avatar_url":"https://avatars.githubusercontent.com/u/5896181?v=3","gravatar_id":"","url":"https://api.github.com/users/Perfect7M","html_url":"https://github.com/Perfect7M","followers_url":"https://api.github.com/users/Perfect7M/followers","following_url":"https://api.github.com/users/Perfect7M/following{/other_user}","gists_url":"https://api.github.com/users/Perfect7M/gists{/gist_id}","starred_url":"https://api.github.com/users/Perfect7M/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Perfect7M/subscriptions","organizations_url":"https://api.github.com/users/Perfect7M/orgs","repos_url":"https://api.github.com/users/Perfect7M/repos","events_url":"https://api.github.com/users/Perfect7M/events{/privacy}","received_events_url":"https://api.github.com/users/Perfect7M/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-16T16:20:49Z","updated_at":"2016-10-17T15:41:50Z","closed_at":null,"body":"Hello, I'm begginer in nodejs and especially generators app so i don't know how to do this on my own. In Google there is a lack of information:\r\n\r\n`twitch.getAuthenticatedUserChannel(body.access_token, collectInformation);`\r\n\r\n`        function collectInformation(err, body) {\r\n                if(err) {\r\n                    console.dir(err);\r\n                } else {\r\n                    HomeController.prototype._user = {\r\n                        twitch_id: body._id,\r\n                        username: body.name,\r\n                        display_name: body.display_name,\r\n                        logo: body.logo\r\n                    };\r\n                }\r\n        } `\r\n\r\nI want to yield information about user to session but i can't do this in `collectInformation` because there is an error of can't use yield in function (i think so).\r\n\r\nSecond question is: How can bind other `HomeController` function to callback for ex. \r\n`    * logged(request, response) {\r\n  [...]\r\n  twitch.getAuthenticatedUserChannel(body.access_token, collectInformation); //instead of collectInfromation() how can i bind finish() presented below?\r\n`\r\n`    * finish() {\r\n        console.log(HomeController.prototype._user);\r\n    } `"},"comment":{"url":"https://api.github.com/repos/adonisjs/adonis-framework/issues/comments/254245515","html_url":"https://github.com/adonisjs/adonis-framework/issues/322#issuecomment-254245515","issue_url":"https://api.github.com/repos/adonisjs/adonis-framework/issues/322","id":254245515,"user":{"login":"Atinux","id":904724,"avatar_url":"https://avatars.githubusercontent.com/u/904724?v=3","gravatar_id":"","url":"https://api.github.com/users/Atinux","html_url":"https://github.com/Atinux","followers_url":"https://api.github.com/users/Atinux/followers","following_url":"https://api.github.com/users/Atinux/following{/other_user}","gists_url":"https://api.github.com/users/Atinux/gists{/gist_id}","starred_url":"https://api.github.com/users/Atinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Atinux/subscriptions","organizations_url":"https://api.github.com/users/Atinux/orgs","repos_url":"https://api.github.com/users/Atinux/repos","events_url":"https://api.github.com/users/Atinux/events{/privacy}","received_events_url":"https://api.github.com/users/Atinux/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T15:41:50Z","updated_at":"2016-10-17T15:41:50Z","body":"Can you try my example and tell me if it's working?\n\nes6-promisify module will handle the callback for you don't worry"}}
{"actor":{"display_login":"Atinux"}}