{"action":"closed","issue":{"url":"https://api.github.com/repos/garykac/procspec/issues/13","repository_url":"https://api.github.com/repos/garykac/procspec","labels_url":"https://api.github.com/repos/garykac/procspec/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/garykac/procspec/issues/13/comments","events_url":"https://api.github.com/repos/garykac/procspec/issues/13/events","html_url":"https://github.com/garykac/procspec/issues/13","id":226682989,"number":13,"title":"document/recommend \"return, but continue in parallel\" usage?","user":{"login":"inexorabletash","id":771547,"avatar_url":"https://avatars3.githubusercontent.com/u/771547?v=3","gravatar_id":"","url":"https://api.github.com/users/inexorabletash","html_url":"https://github.com/inexorabletash","followers_url":"https://api.github.com/users/inexorabletash/followers","following_url":"https://api.github.com/users/inexorabletash/following{/other_user}","gists_url":"https://api.github.com/users/inexorabletash/gists{/gist_id}","starred_url":"https://api.github.com/users/inexorabletash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inexorabletash/subscriptions","organizations_url":"https://api.github.com/users/inexorabletash/orgs","repos_url":"https://api.github.com/users/inexorabletash/repos","events_url":"https://api.github.com/users/inexorabletash/events{/privacy}","received_events_url":"https://api.github.com/users/inexorabletash/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-05T20:26:53Z","updated_at":"2017-05-08T22:54:58Z","closed_at":"2017-05-08T22:54:58Z","body":"Current:\r\n\r\n1. Let _p_ be a new Promise\r\n2. Run the following substeps in parallel:\r\n  a. Let _foo_ be something awesome, with sprinkles.\r\n  b. Resolve _p_ with foo\r\n3. Return _p_\r\n\r\nI notice HTML uses:\r\n\r\n1. Let _p_ be a new Promise\r\n2. Return _p_, but continue running these steps in parallel.\r\n3. Let _foo_ be something awesome, with sprinkles.\r\n4. Resolve _p_ with foo\r\n\r\nI don't know when this usage arrived (over a year ago?) but it seems to have slightly lower cognitive overhead. This would e.g. dramatically reduce the amount of indentation in Service Workers. Maybe @annevk or @domenic can comment on the preference for this style?\r\n"}}
{"actor":{"display_login":"inexorabletash"}}