RosyWriter AVAssetWriter glFlush()

In RosyWriter sample code, it is said that AVAssetWriter blocks if the pixel buffer rendering is still not finished after calling glFlush (in method copyRenderedPixelBuffer). Is this documented anywhere except the sample code? It is hoped the same behavior applies when using Metal instead of OpenGL, correct?