{"action":"closed","number":7,"pull_request":{"url":"https://api.github.com/repos/SBoudrias/run-async/pulls/7","id":46876100,"html_url":"https://github.com/SBoudrias/run-async/pull/7","diff_url":"https://github.com/SBoudrias/run-async/pull/7.diff","patch_url":"https://github.com/SBoudrias/run-async/pull/7.patch","issue_url":"https://api.github.com/repos/SBoudrias/run-async/issues/7","number":7,"state":"closed","locked":false,"title":"add convenience method for promisification","user":{"login":"jamestalmage","id":4082216,"avatar_url":"https://avatars.githubusercontent.com/u/4082216?v=3","gravatar_id":"","url":"https://api.github.com/users/jamestalmage","html_url":"https://github.com/jamestalmage","followers_url":"https://api.github.com/users/jamestalmage/followers","following_url":"https://api.github.com/users/jamestalmage/following{/other_user}","gists_url":"https://api.github.com/users/jamestalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/jamestalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamestalmage/subscriptions","organizations_url":"https://api.github.com/users/jamestalmage/orgs","repos_url":"https://api.github.com/users/jamestalmage/repos","events_url":"https://api.github.com/users/jamestalmage/events{/privacy}","received_events_url":"https://api.github.com/users/jamestalmage/received_events","type":"User","site_admin":false},"body":"I dunno about this. It adds more code than I thought it would.\r\n\r\nimplements as discussed in #6.\r\n\r\nAlso makes `PromiseConstructor` optional if a global implementation exists.\r\n\r\n\r\n```js\r\n// must pass Promise constructor if global.Promise === undefined\r\n// optional otherwise \r\nvar runAsync = require('run-async').promisify([Promise]);\r\n\r\nrunAsync(fn, [...args]).then(....);\r\n```\r\n","created_at":"2015-10-06T08:46:27Z","updated_at":"2015-10-13T22:07:43Z","closed_at":"2015-10-13T22:07:43Z","merged_at":null,"merge_commit_sha":"2e1fb0ded16da3565e44ccaf9d9a7fc8ac37a8b8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SBoudrias/run-async/pulls/7/commits","review_comments_url":"https://api.github.com/repos/SBoudrias/run-async/pulls/7/comments","review_comment_url":"https://api.github.com/repos/SBoudrias/run-async/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SBoudrias/run-async/issues/7/comments","statuses_url":"https://api.github.com/repos/SBoudrias/run-async/statuses/367fa2ee8b50f3ed972eb633fd88537f000eb9a6","head":{"label":"SBoudrias:promisify","ref":"promisify","sha":"367fa2ee8b50f3ed972eb633fd88537f000eb9a6","user":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"repo":{"id":22822109,"name":"run-async","full_name":"SBoudrias/run-async","owner":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SBoudrias/run-async","description":"Utility method to run function either synchronously or asynchronously using the common `this.async()` style.","fork":false,"url":"https://api.github.com/repos/SBoudrias/run-async","forks_url":"https://api.github.com/repos/SBoudrias/run-async/forks","keys_url":"https://api.github.com/repos/SBoudrias/run-async/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SBoudrias/run-async/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SBoudrias/run-async/teams","hooks_url":"https://api.github.com/repos/SBoudrias/run-async/hooks","issue_events_url":"https://api.github.com/repos/SBoudrias/run-async/issues/events{/number}","events_url":"https://api.github.com/repos/SBoudrias/run-async/events","assignees_url":"https://api.github.com/repos/SBoudrias/run-async/assignees{/user}","branches_url":"https://api.github.com/repos/SBoudrias/run-async/branches{/branch}","tags_url":"https://api.github.com/repos/SBoudrias/run-async/tags","blobs_url":"https://api.github.com/repos/SBoudrias/run-async/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SBoudrias/run-async/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SBoudrias/run-async/git/refs{/sha}","trees_url":"https://api.github.com/repos/SBoudrias/run-async/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SBoudrias/run-async/statuses/{sha}","languages_url":"https://api.github.com/repos/SBoudrias/run-async/languages","stargazers_url":"https://api.github.com/repos/SBoudrias/run-async/stargazers","contributors_url":"https://api.github.com/repos/SBoudrias/run-async/contributors","subscribers_url":"https://api.github.com/repos/SBoudrias/run-async/subscribers","subscription_url":"https://api.github.com/repos/SBoudrias/run-async/subscription","commits_url":"https://api.github.com/repos/SBoudrias/run-async/commits{/sha}","git_commits_url":"https://api.github.com/repos/SBoudrias/run-async/git/commits{/sha}","comments_url":"https://api.github.com/repos/SBoudrias/run-async/comments{/number}","issue_comment_url":"https://api.github.com/repos/SBoudrias/run-async/issues/comments{/number}","contents_url":"https://api.github.com/repos/SBoudrias/run-async/contents/{+path}","compare_url":"https://api.github.com/repos/SBoudrias/run-async/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SBoudrias/run-async/merges","archive_url":"https://api.github.com/repos/SBoudrias/run-async/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SBoudrias/run-async/downloads","issues_url":"https://api.github.com/repos/SBoudrias/run-async/issues{/number}","pulls_url":"https://api.github.com/repos/SBoudrias/run-async/pulls{/number}","milestones_url":"https://api.github.com/repos/SBoudrias/run-async/milestones{/number}","notifications_url":"https://api.github.com/repos/SBoudrias/run-async/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SBoudrias/run-async/labels{/name}","releases_url":"https://api.github.com/repos/SBoudrias/run-async/releases{/id}","created_at":"2014-08-11T00:35:20Z","updated_at":"2015-10-06T05:55:15Z","pushed_at":"2015-10-13T22:06:18Z","git_url":"git://github.com/SBoudrias/run-async.git","ssh_url":"git@github.com:SBoudrias/run-async.git","clone_url":"https://github.com/SBoudrias/run-async.git","svn_url":"https://github.com/SBoudrias/run-async","homepage":"","size":229,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"SBoudrias:master","ref":"master","sha":"d756dbfa4a3525909272bfcb4412f96853ff4241","user":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"repo":{"id":22822109,"name":"run-async","full_name":"SBoudrias/run-async","owner":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SBoudrias/run-async","description":"Utility method to run function either synchronously or asynchronously using the common `this.async()` style.","fork":false,"url":"https://api.github.com/repos/SBoudrias/run-async","forks_url":"https://api.github.com/repos/SBoudrias/run-async/forks","keys_url":"https://api.github.com/repos/SBoudrias/run-async/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SBoudrias/run-async/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SBoudrias/run-async/teams","hooks_url":"https://api.github.com/repos/SBoudrias/run-async/hooks","issue_events_url":"https://api.github.com/repos/SBoudrias/run-async/issues/events{/number}","events_url":"https://api.github.com/repos/SBoudrias/run-async/events","assignees_url":"https://api.github.com/repos/SBoudrias/run-async/assignees{/user}","branches_url":"https://api.github.com/repos/SBoudrias/run-async/branches{/branch}","tags_url":"https://api.github.com/repos/SBoudrias/run-async/tags","blobs_url":"https://api.github.com/repos/SBoudrias/run-async/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SBoudrias/run-async/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SBoudrias/run-async/git/refs{/sha}","trees_url":"https://api.github.com/repos/SBoudrias/run-async/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SBoudrias/run-async/statuses/{sha}","languages_url":"https://api.github.com/repos/SBoudrias/run-async/languages","stargazers_url":"https://api.github.com/repos/SBoudrias/run-async/stargazers","contributors_url":"https://api.github.com/repos/SBoudrias/run-async/contributors","subscribers_url":"https://api.github.com/repos/SBoudrias/run-async/subscribers","subscription_url":"https://api.github.com/repos/SBoudrias/run-async/subscription","commits_url":"https://api.github.com/repos/SBoudrias/run-async/commits{/sha}","git_commits_url":"https://api.github.com/repos/SBoudrias/run-async/git/commits{/sha}","comments_url":"https://api.github.com/repos/SBoudrias/run-async/comments{/number}","issue_comment_url":"https://api.github.com/repos/SBoudrias/run-async/issues/comments{/number}","contents_url":"https://api.github.com/repos/SBoudrias/run-async/contents/{+path}","compare_url":"https://api.github.com/repos/SBoudrias/run-async/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SBoudrias/run-async/merges","archive_url":"https://api.github.com/repos/SBoudrias/run-async/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SBoudrias/run-async/downloads","issues_url":"https://api.github.com/repos/SBoudrias/run-async/issues{/number}","pulls_url":"https://api.github.com/repos/SBoudrias/run-async/pulls{/number}","milestones_url":"https://api.github.com/repos/SBoudrias/run-async/milestones{/number}","notifications_url":"https://api.github.com/repos/SBoudrias/run-async/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SBoudrias/run-async/labels{/name}","releases_url":"https://api.github.com/repos/SBoudrias/run-async/releases{/id}","created_at":"2014-08-11T00:35:20Z","updated_at":"2015-10-06T05:55:15Z","pushed_at":"2015-10-13T22:06:18Z","git_url":"git://github.com/SBoudrias/run-async.git","ssh_url":"git@github.com:SBoudrias/run-async.git","clone_url":"https://github.com/SBoudrias/run-async.git","svn_url":"https://github.com/SBoudrias/run-async","homepage":"","size":229,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SBoudrias/run-async/pulls/7"},"html":{"href":"https://github.com/SBoudrias/run-async/pull/7"},"issue":{"href":"https://api.github.com/repos/SBoudrias/run-async/issues/7"},"comments":{"href":"https://api.github.com/repos/SBoudrias/run-async/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/SBoudrias/run-async/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/SBoudrias/run-async/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SBoudrias/run-async/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/SBoudrias/run-async/statuses/367fa2ee8b50f3ed972eb633fd88537f000eb9a6"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":6,"review_comments":2,"commits":3,"additions":88,"deletions":12,"changed_files":4}}