{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/1807","labels_url":"https://api.github.com/repos/atom/electron/issues/1807/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/1807/comments","events_url":"https://api.github.com/repos/atom/electron/issues/1807/events","html_url":"https://github.com/atom/electron/pull/1807","id":82024952,"number":1807,"title":"protocol: supporting async request jobs","user":{"login":"deepak1556","id":964386,"avatar_url":"https://avatars.githubusercontent.com/u/964386?v=3","gravatar_id":"","url":"https://api.github.com/users/deepak1556","html_url":"https://github.com/deepak1556","followers_url":"https://api.github.com/users/deepak1556/followers","following_url":"https://api.github.com/users/deepak1556/following{/other_user}","gists_url":"https://api.github.com/users/deepak1556/gists{/gist_id}","starred_url":"https://api.github.com/users/deepak1556/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepak1556/subscriptions","organizations_url":"https://api.github.com/users/deepak1556/orgs","repos_url":"https://api.github.com/users/deepak1556/repos","events_url":"https://api.github.com/users/deepak1556/events{/privacy}","received_events_url":"https://api.github.com/users/deepak1556/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-28T16:49:16Z","updated_at":"2015-05-29T01:52:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/atom/electron/pulls/1807","html_url":"https://github.com/atom/electron/pull/1807","diff_url":"https://github.com/atom/electron/pull/1807.diff","patch_url":"https://github.com/atom/electron/pull/1807.patch"},"body":"Fixes #410 \r\n\r\nHave started with an api like\r\n\r\n```js\r\nprotocol.RequestAsyncJob(<jobtype>, function(cb) {\r\n  cb(<object>)\r\n})\r\n```\r\n\r\n- [x] support all existing sync jobs\r\n- [x] Add Tests"},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/106653189","html_url":"https://github.com/atom/electron/pull/1807#issuecomment-106653189","issue_url":"https://api.github.com/repos/atom/electron/issues/1807","id":106653189,"user":{"login":"zcbenz","id":639601,"avatar_url":"https://avatars.githubusercontent.com/u/639601?v=3","gravatar_id":"","url":"https://api.github.com/users/zcbenz","html_url":"https://github.com/zcbenz","followers_url":"https://api.github.com/users/zcbenz/followers","following_url":"https://api.github.com/users/zcbenz/following{/other_user}","gists_url":"https://api.github.com/users/zcbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/zcbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcbenz/subscriptions","organizations_url":"https://api.github.com/users/zcbenz/orgs","repos_url":"https://api.github.com/users/zcbenz/repos","events_url":"https://api.github.com/users/zcbenz/events{/privacy}","received_events_url":"https://api.github.com/users/zcbenz/received_events","type":"User","site_admin":true},"created_at":"2015-05-29T01:52:11Z","updated_at":"2015-05-29T01:52:11Z","body":"An `RequestAsyncBufferJob` should be enough to cover all cases, the purpose of async job is to support streaming data, for which `Buffer` is the only type used.\r\n\r\nThe `cb` can be called as `cb(errorCode, data)` like traditional Node.js apps."}}