Note: This feature is available in Dedicated Web Workers.
The ready property of the ImageTrackList interface returns a Promise that resolves when the ImageTrackList is populated with tracks.
A Promise that resolves with undefined.
The following example prints the value of ready to the console, this will be undefined once the promise resolves.
let tracks = imageDecoder.tracks;
let ready = await tracks.ready;
console.log(ready);