-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Closed
Labels
Content:WebAPIWeb API docsWeb API docsaccepting PRFeel free to open a PR to resolve this issueFeel free to open a PR to resolve this issue
Description
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/decode
What specific section or headline is this issue about?
completeframesonly
What information was incorrect, unhelpful, or incomplete?
The phrase:
“the promise returned by decode() will resolve exactly once for each new level of detail”
reads like one promise resolves multiple times.
But that would violate JavaScript semantics:
- A Promise settles once.
- After resolution, it cannot resolve again.
- It cannot “emit” multiple values.
What did you expect to see?
Each call to decode() returns a promise that resolves once, and if additional detail becomes available later, calling decode() again will return another promise that resolves when the next level is ready.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/api/imagedecoder/decode - MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/decode
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/imagedecoder/decode/index.md
- Last commit: a748228
- Document last modified: 2024-10-31T03:19:16.000Z
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Content:WebAPIWeb API docsWeb API docsaccepting PRFeel free to open a PR to resolve this issueFeel free to open a PR to resolve this issue