{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/19426","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/19426/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/19426/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/19426/events","html_url":"https://github.com/nodejs/node/issues/19426","id":306229258,"number":19426,"title":"Should timers return a `then`able by default?","user":{"login":"benjamingr","id":1315533,"avatar_url":"https://avatars2.githubusercontent.com/u/1315533?v=4","gravatar_id":"","url":"https://api.github.com/users/benjamingr","html_url":"https://github.com/benjamingr","followers_url":"https://api.github.com/users/benjamingr/followers","following_url":"https://api.github.com/users/benjamingr/following{/other_user}","gists_url":"https://api.github.com/users/benjamingr/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamingr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamingr/subscriptions","organizations_url":"https://api.github.com/users/benjamingr/orgs","repos_url":"https://api.github.com/users/benjamingr/repos","events_url":"https://api.github.com/users/benjamingr/events{/privacy}","received_events_url":"https://api.github.com/users/benjamingr/received_events","type":"User","site_admin":false},"labels":[{"id":340436277,"url":"https://api.github.com/repos/nodejs/node/labels/promises","name":"promises","color":"f7c6c7","default":false},{"id":155435976,"url":"https://api.github.com/repos/nodejs/node/labels/timers","name":"timers","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-18T10:38:17Z","updated_at":"2018-03-18T15:26:52Z","closed_at":null,"author_association":"OWNER","body":"We can already `util.promisify(setTimeout)`, but technically we can make timer objects contain a `.then` method (getter?) that could create a promise only when `await`ed allowing timers to be `await` without having to call `util.promisify` or sacrificing performance of timers for regular users.\r\n\r\n - Do we like this? \r\n - Do we think it's a good idea?"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/374008084","html_url":"https://github.com/nodejs/node/issues/19426#issuecomment-374008084","issue_url":"https://api.github.com/repos/nodejs/node/issues/19426","id":374008084,"user":{"login":"benjamingr","id":1315533,"avatar_url":"https://avatars2.githubusercontent.com/u/1315533?v=4","gravatar_id":"","url":"https://api.github.com/users/benjamingr","html_url":"https://github.com/benjamingr","followers_url":"https://api.github.com/users/benjamingr/followers","following_url":"https://api.github.com/users/benjamingr/following{/other_user}","gists_url":"https://api.github.com/users/benjamingr/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamingr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamingr/subscriptions","organizations_url":"https://api.github.com/users/benjamingr/orgs","repos_url":"https://api.github.com/users/benjamingr/repos","events_url":"https://api.github.com/users/benjamingr/events{/privacy}","received_events_url":"https://api.github.com/users/benjamingr/received_events","type":"User","site_admin":false},"created_at":"2018-03-18T15:26:52Z","updated_at":"2018-03-18T15:26:52Z","author_association":"OWNER","body":"@devsnek whatwg couldn't do this even if they wanted since their timers return numbers (well _technically_ they can, but I _seriously_ doubt they will). \r\n\r\nOur timers return objects, so we're better able to do this."}}
{"actor":{"display_login":"benjamingr"}}