Re: [w3c/editing] Seeking feedback on delayed clipboard rendering proposal (Issue #417)

> The executor function in the Promise runs immediately, so it defeats the purpose of delayed rendering by not allowing the web authors to only generate the expensive formats when it's requested by the system clipboard.

Yes it does run immediately, but you don't have to call `resolve()` right away. You'd only call `resolve(blob)` once you're actually ready, which can be later on in the event loop based on some event. Am I misunderstanding something or were promises not understood?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/417#issuecomment-1482532629
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/editing/issues/417/1482532629@github.com>

Received on Friday, 24 March 2023 09:55:27 UTC