- From: Marcos Cáceres <notifications@github.com>
- Date: Mon, 04 Feb 2019 17:09:35 -0800
- To: w3c/screen-orientation <screen-orientation@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 5 February 2019 01:09:56 UTC
@mounirlamouri wrote > Is there a recommended pattern by the TAG or commonly used one from other specifications? I was actually thinking of filing a bug on the TAG as this particular situation is not _exactly_ covered by either the API Design Guide or the Promises Guide. Regardless, the "pending promise" effectively represents the screen having changed: ```JS const pendingPromise = new Promise(r => { screen.orientation.addEventListener("change", ()=> r(), { once: true }); }); ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/screen-orientation/pull/147#issuecomment-460476428
Received on Tuesday, 5 February 2019 01:09:56 UTC