{"action":"created","comment":{"url":"https://api.github.com/repos/w3c/webrtc-pc/pulls/comments/40858527","id":40858527,"diff_hunk":"@@ -524,26 +528,36 @@\n \n           <li>\n             <p>If the length of the <code>operations</code> array is exactly 1,\n-            execute the function from the front of the queue\n-            asynchronously.</p>\n+            execute the object from the front of the queue.</p>\n+          </li>\n+\n+          <li>\n+            <p>Upon fulfillment or rejection of the promise returned\n+            by the function, fulfill or reject <code>p</code> with the\n+            corresponding value or reason.  Upon fulfillment or\n+            rejection of <code>p</code>, execute the following","path":"webrtc.html","position":24,"original_position":24,"commit_id":"0872ddfa3d66f9dfd5091f63a08f3958bab13b01","original_commit_id":"0872ddfa3d66f9dfd5091f63a08f3958bab13b01","user":{"login":"jan-ivar","id":3136226,"avatar_url":"https://avatars.githubusercontent.com/u/3136226?v=3","gravatar_id":"","url":"https://api.github.com/users/jan-ivar","html_url":"https://github.com/jan-ivar","followers_url":"https://api.github.com/users/jan-ivar/followers","following_url":"https://api.github.com/users/jan-ivar/following{/other_user}","gists_url":"https://api.github.com/users/jan-ivar/gists{/gist_id}","starred_url":"https://api.github.com/users/jan-ivar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jan-ivar/subscriptions","organizations_url":"https://api.github.com/users/jan-ivar/orgs","repos_url":"https://api.github.com/users/jan-ivar/repos","events_url":"https://api.github.com/users/jan-ivar/events{/privacy}","received_events_url":"https://api.github.com/users/jan-ivar/received_events","type":"User","site_admin":false},"body":"s/code/var/","created_at":"2015-09-30T22:05:04Z","updated_at":"2015-09-30T22:05:04Z","html_url":"https://github.com/w3c/webrtc-pc/pull/314#discussion_r40858527","pull_request_url":"https://api.github.com/repos/w3c/webrtc-pc/pulls/314","_links":{"self":{"href":"https://api.github.com/repos/w3c/webrtc-pc/pulls/comments/40858527"},"html":{"href":"https://github.com/w3c/webrtc-pc/pull/314#discussion_r40858527"},"pull_request":{"href":"https://api.github.com/repos/w3c/webrtc-pc/pulls/314"}}},"pull_request":{"url":"https://api.github.com/repos/w3c/webrtc-pc/pulls/314","id":45769299,"html_url":"https://github.com/w3c/webrtc-pc/pull/314","diff_url":"https://github.com/w3c/webrtc-pc/pull/314.diff","patch_url":"https://github.com/w3c/webrtc-pc/pull/314.patch","issue_url":"https://api.github.com/repos/w3c/webrtc-pc/issues/314","number":314,"state":"open","locked":false,"title":"Update the operations queue to handle promises and closed signalling …","user":{"login":"pthatcherg","id":7774202,"avatar_url":"https://avatars.githubusercontent.com/u/7774202?v=3","gravatar_id":"","url":"https://api.github.com/users/pthatcherg","html_url":"https://github.com/pthatcherg","followers_url":"https://api.github.com/users/pthatcherg/followers","following_url":"https://api.github.com/users/pthatcherg/following{/other_user}","gists_url":"https://api.github.com/users/pthatcherg/gists{/gist_id}","starred_url":"https://api.github.com/users/pthatcherg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pthatcherg/subscriptions","organizations_url":"https://api.github.com/users/pthatcherg/orgs","repos_url":"https://api.github.com/users/pthatcherg/repos","events_url":"https://api.github.com/users/pthatcherg/events{/privacy}","received_events_url":"https://api.github.com/users/pthatcherg/received_events","type":"User","site_admin":false},"body":"An alternative to https://github.com/w3c/webrtc-pc/pull/307/ where we update to handle promises, but we keep a queue of operations rather than a promise chain.","created_at":"2015-09-23T11:42:42Z","updated_at":"2015-09-30T22:05:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c8de0b2dba669c507e823937c1c87a7fc003bda","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/w3c/webrtc-pc/pulls/314/commits","review_comments_url":"https://api.github.com/repos/w3c/webrtc-pc/pulls/314/comments","review_comment_url":"https://api.github.com/repos/w3c/webrtc-pc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/w3c/webrtc-pc/issues/314/comments","statuses_url":"https://api.github.com/repos/w3c/webrtc-pc/statuses/0872ddfa3d66f9dfd5091f63a08f3958bab13b01","head":{"label":"pthatcherg:operation-queue","ref":"operation-queue","sha":"0872ddfa3d66f9dfd5091f63a08f3958bab13b01","user":{"login":"pthatcherg","id":7774202,"avatar_url":"https://avatars.githubusercontent.com/u/7774202?v=3","gravatar_id":"","url":"https://api.github.com/users/pthatcherg","html_url":"https://github.com/pthatcherg","followers_url":"https://api.github.com/users/pthatcherg/followers","following_url":"https://api.github.com/users/pthatcherg/following{/other_user}","gists_url":"https://api.github.com/users/pthatcherg/gists{/gist_id}","starred_url":"https://api.github.com/users/pthatcherg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pthatcherg/subscriptions","organizations_url":"https://api.github.com/users/pthatcherg/orgs","repos_url":"https://api.github.com/users/pthatcherg/repos","events_url":"https://api.github.com/users/pthatcherg/events{/privacy}","received_events_url":"https://api.github.com/users/pthatcherg/received_events","type":"User","site_admin":false},"repo":{"id":28604684,"name":"webrtc-pc","full_name":"pthatcherg/webrtc-pc","owner":{"login":"pthatcherg","id":7774202,"avatar_url":"https://avatars.githubusercontent.com/u/7774202?v=3","gravatar_id":"","url":"https://api.github.com/users/pthatcherg","html_url":"https://github.com/pthatcherg","followers_url":"https://api.github.com/users/pthatcherg/followers","following_url":"https://api.github.com/users/pthatcherg/following{/other_user}","gists_url":"https://api.github.com/users/pthatcherg/gists{/gist_id}","starred_url":"https://api.github.com/users/pthatcherg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pthatcherg/subscriptions","organizations_url":"https://api.github.com/users/pthatcherg/orgs","repos_url":"https://api.github.com/users/pthatcherg/repos","events_url":"https://api.github.com/users/pthatcherg/events{/privacy}","received_events_url":"https://api.github.com/users/pthatcherg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pthatcherg/webrtc-pc","description":"WebRTC 1.0 API","fork":true,"url":"https://api.github.com/repos/pthatcherg/webrtc-pc","forks_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/forks","keys_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/teams","hooks_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/hooks","issue_events_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/issues/events{/number}","events_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/events","assignees_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/assignees{/user}","branches_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/branches{/branch}","tags_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/tags","blobs_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/git/refs{/sha}","trees_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/statuses/{sha}","languages_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/languages","stargazers_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/stargazers","contributors_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/contributors","subscribers_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/subscribers","subscription_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/subscription","commits_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/commits{/sha}","git_commits_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/git/commits{/sha}","comments_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/comments{/number}","issue_comment_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/issues/comments{/number}","contents_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/contents/{+path}","compare_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/merges","archive_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/downloads","issues_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/issues{/number}","pulls_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/pulls{/number}","milestones_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/milestones{/number}","notifications_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/labels{/name}","releases_url":"https://api.github.com/repos/pthatcherg/webrtc-pc/releases{/id}","created_at":"2014-12-29T20:07:00Z","updated_at":"2014-12-29T20:07:01Z","pushed_at":"2015-09-30T22:03:37Z","git_url":"git://github.com/pthatcherg/webrtc-pc.git","ssh_url":"git@github.com:pthatcherg/webrtc-pc.git","clone_url":"https://github.com/pthatcherg/webrtc-pc.git","svn_url":"https://github.com/pthatcherg/webrtc-pc","homepage":null,"size":16652,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"w3c:master","ref":"master","sha":"d0200370a6807cf7fb5855f1ea08e9522984d806","user":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"repo":{"id":23384500,"name":"webrtc-pc","full_name":"w3c/webrtc-pc","owner":{"login":"w3c","id":379216,"avatar_url":"https://avatars.githubusercontent.com/u/379216?v=3","gravatar_id":"","url":"https://api.github.com/users/w3c","html_url":"https://github.com/w3c","followers_url":"https://api.github.com/users/w3c/followers","following_url":"https://api.github.com/users/w3c/following{/other_user}","gists_url":"https://api.github.com/users/w3c/gists{/gist_id}","starred_url":"https://api.github.com/users/w3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w3c/subscriptions","organizations_url":"https://api.github.com/users/w3c/orgs","repos_url":"https://api.github.com/users/w3c/repos","events_url":"https://api.github.com/users/w3c/events{/privacy}","received_events_url":"https://api.github.com/users/w3c/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/w3c/webrtc-pc","description":"WebRTC 1.0 API","fork":false,"url":"https://api.github.com/repos/w3c/webrtc-pc","forks_url":"https://api.github.com/repos/w3c/webrtc-pc/forks","keys_url":"https://api.github.com/repos/w3c/webrtc-pc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/w3c/webrtc-pc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/w3c/webrtc-pc/teams","hooks_url":"https://api.github.com/repos/w3c/webrtc-pc/hooks","issue_events_url":"https://api.github.com/repos/w3c/webrtc-pc/issues/events{/number}","events_url":"https://api.github.com/repos/w3c/webrtc-pc/events","assignees_url":"https://api.github.com/repos/w3c/webrtc-pc/assignees{/user}","branches_url":"https://api.github.com/repos/w3c/webrtc-pc/branches{/branch}","tags_url":"https://api.github.com/repos/w3c/webrtc-pc/tags","blobs_url":"https://api.github.com/repos/w3c/webrtc-pc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/w3c/webrtc-pc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/w3c/webrtc-pc/git/refs{/sha}","trees_url":"https://api.github.com/repos/w3c/webrtc-pc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/w3c/webrtc-pc/statuses/{sha}","languages_url":"https://api.github.com/repos/w3c/webrtc-pc/languages","stargazers_url":"https://api.github.com/repos/w3c/webrtc-pc/stargazers","contributors_url":"https://api.github.com/repos/w3c/webrtc-pc/contributors","subscribers_url":"https://api.github.com/repos/w3c/webrtc-pc/subscribers","subscription_url":"https://api.github.com/repos/w3c/webrtc-pc/subscription","commits_url":"https://api.github.com/repos/w3c/webrtc-pc/commits{/sha}","git_commits_url":"https://api.github.com/repos/w3c/webrtc-pc/git/commits{/sha}","comments_url":"https://api.github.com/repos/w3c/webrtc-pc/comments{/number}","issue_comment_url":"https://api.github.com/repos/w3c/webrtc-pc/issues/comments{/number}","contents_url":"https://api.github.com/repos/w3c/webrtc-pc/contents/{+path}","compare_url":"https://api.github.com/repos/w3c/webrtc-pc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/w3c/webrtc-pc/merges","archive_url":"https://api.github.com/repos/w3c/webrtc-pc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/w3c/webrtc-pc/downloads","issues_url":"https://api.github.com/repos/w3c/webrtc-pc/issues{/number}","pulls_url":"https://api.github.com/repos/w3c/webrtc-pc/pulls{/number}","milestones_url":"https://api.github.com/repos/w3c/webrtc-pc/milestones{/number}","notifications_url":"https://api.github.com/repos/w3c/webrtc-pc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/w3c/webrtc-pc/labels{/name}","releases_url":"https://api.github.com/repos/w3c/webrtc-pc/releases{/id}","created_at":"2014-08-27T09:39:00Z","updated_at":"2015-09-25T03:44:33Z","pushed_at":"2015-09-30T22:03:38Z","git_url":"git://github.com/w3c/webrtc-pc.git","ssh_url":"git@github.com:w3c/webrtc-pc.git","clone_url":"https://github.com/w3c/webrtc-pc.git","svn_url":"https://github.com/w3c/webrtc-pc","homepage":null,"size":21523,"stargazers_count":41,"watchers_count":41,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":25,"mirror_url":null,"open_issues_count":71,"forks":25,"open_issues":71,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/w3c/webrtc-pc/pulls/314"},"html":{"href":"https://github.com/w3c/webrtc-pc/pull/314"},"issue":{"href":"https://api.github.com/repos/w3c/webrtc-pc/issues/314"},"comments":{"href":"https://api.github.com/repos/w3c/webrtc-pc/issues/314/comments"},"review_comments":{"href":"https://api.github.com/repos/w3c/webrtc-pc/pulls/314/comments"},"review_comment":{"href":"https://api.github.com/repos/w3c/webrtc-pc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/w3c/webrtc-pc/pulls/314/commits"},"statuses":{"href":"https://api.github.com/repos/w3c/webrtc-pc/statuses/0872ddfa3d66f9dfd5091f63a08f3958bab13b01"}}}}