flushAsync

external fun flushAsync(): Promise<Void>(source)

The flush() method of the VideoEncoder interface forces all pending encodes to complete.

MDN Reference