onSubmittedWorkDone

inline suspend fun GPUQueue.onSubmittedWorkDone()(source)

The onSubmittedWorkDone() method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.

MDN Reference