Note: This feature is available in Web Workers.
The WebGLRenderingContext.finish() method of the WebGL API blocks execution until all previously called commands are finished.
finish()None.
None (undefined).
WebGLRenderingContext.flush()finish() as it may slow down your main rendering loop)