flush

suspend fun flush()(source)

The flush() method of the VideoDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.

MDN Reference