- From: <bugzilla@jessica.w3.org>
- Date: Fri, 06 Jun 2014 19:12:01 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24697 --- Comment #4 from Marcos Caceres <w3c@marcosc.com> --- > In step 4, loop through the list of pending lock-orientation promises and reject them with an AbortError; then empty the list. Technically, Domenic is correct. However, I don't think you can (or should) end up with a list of pending promises. At most, you would end up with 1 pending promise at any point in time. This is because: ```JS //this creates a promise, puts it in the pending queue. var p1 = lockOrientation(); //This will cause p1 to be immediately rejected with an AbortError. //This now puts p2 in the place of p1 in the pending queue. var p2 = lockOrientation(); //And so on... p2 is rejected, pN is queued. var pN = lockOrientation(); ``` -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Friday, 6 June 2014 19:12:06 UTC