clientWaitSync method
The WebGL2RenderingContext.clientWaitSync() method of the
WebGL 2 API
blocks and waits for a
WebGLSync object to become signaled or a given timeout to be passed.
Implementation
external GLenum clientWaitSync(
  WebGLSync sync,
  GLbitfield flags,
  GLuint64 timeout,
);