ImageDecoder: completed property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{securecontext_header}}{{APIRef("WebCodecs API")}}{{AvailableInWorkers("window_and_dedicated")}}
The **completed** read-only property of the {{domxref("ImageDecoder")}} interface returns a promise that resolves once encoded data has finished buffering.
Value
A {{jsxref("Promise")}} that resolves with {{jsxref("undefined")}} once {{domxref("ImageDecoder.complete")}} is true.
Examples
In the following example the value of completed will be undefined once the promise resolves.
js
let completed = await imageDecoder.completed;
console.log(completed);Specifications
{{Specifications}}
Browser compatibility
{{Compat}}