{"action":"created","issue":{"url":"https://api.github.com/repos/squaremo/amqp.node/issues/221","repository_url":"https://api.github.com/repos/squaremo/amqp.node","labels_url":"https://api.github.com/repos/squaremo/amqp.node/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/squaremo/amqp.node/issues/221/comments","events_url":"https://api.github.com/repos/squaremo/amqp.node/issues/221/events","html_url":"https://github.com/squaremo/amqp.node/issues/221","id":127293196,"number":221,"title":"Consume as a promise","user":{"login":"alantrrs","id":689720,"avatar_url":"https://avatars.githubusercontent.com/u/689720?v=3","gravatar_id":"","url":"https://api.github.com/users/alantrrs","html_url":"https://github.com/alantrrs","followers_url":"https://api.github.com/users/alantrrs/followers","following_url":"https://api.github.com/users/alantrrs/following{/other_user}","gists_url":"https://api.github.com/users/alantrrs/gists{/gist_id}","starred_url":"https://api.github.com/users/alantrrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alantrrs/subscriptions","organizations_url":"https://api.github.com/users/alantrrs/orgs","repos_url":"https://api.github.com/users/alantrrs/repos","events_url":"https://api.github.com/users/alantrrs/events{/privacy}","received_events_url":"https://api.github.com/users/alantrrs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-18T19:15:15Z","updated_at":"2016-04-29T09:47:15Z","closed_at":"2016-01-19T06:45:36Z","body":"Looks like ``ch.consume`` is still using a callback in the Promise API, shouldn't it be a promise instead? \r\nI would expect to use it like this: ``ch.consume(q).then(function (msg) {})``"},"comment":{"url":"https://api.github.com/repos/squaremo/amqp.node/issues/comments/215672172","html_url":"https://github.com/squaremo/amqp.node/issues/221#issuecomment-215672172","issue_url":"https://api.github.com/repos/squaremo/amqp.node/issues/221","id":215672172,"user":{"login":"dynnamitt","id":43120,"avatar_url":"https://avatars.githubusercontent.com/u/43120?v=3","gravatar_id":"","url":"https://api.github.com/users/dynnamitt","html_url":"https://github.com/dynnamitt","followers_url":"https://api.github.com/users/dynnamitt/followers","following_url":"https://api.github.com/users/dynnamitt/following{/other_user}","gists_url":"https://api.github.com/users/dynnamitt/gists{/gist_id}","starred_url":"https://api.github.com/users/dynnamitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dynnamitt/subscriptions","organizations_url":"https://api.github.com/users/dynnamitt/orgs","repos_url":"https://api.github.com/users/dynnamitt/repos","events_url":"https://api.github.com/users/dynnamitt/events{/privacy}","received_events_url":"https://api.github.com/users/dynnamitt/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T09:47:15Z","updated_at":"2016-04-29T09:47:15Z","body":"Help me understand pls?"}}