W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > June 2017

Re: [webrtc-pc] Make promise rejection/enqueing consistent

From: Adam Bergkvist via GitHub <sysbot+gh@w3.org>
Date: Thu, 08 Jun 2017 12:41:12 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-307091186-1496925671-sysbot+gh@w3.org>
If an error can be determined directly, we return a rejected promise right away. That's how it's done in the promise writing guide [1]. Otherwise we return a "pending" promise that can be rejected or fulfilled later.

[1] https://www.w3.org/2001/tag/doc/promises-guide#example-validated-delay

-- 
GitHub Notification of comment by adam-be
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1345#issuecomment-307091186 using your GitHub account
Received on Thursday, 8 June 2017 12:41:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 15:32:44 UTC