waitUntilCompleted()
Waits until the Cirendertask finishes and returns.
Declaration
func waitUntilCompleted() throws -> CIRenderInfoDiscussion
Synchronously blocks execution until the CIRenderTask either completes or fails (with error). Calling this method after startTask(toRender:to:) or startTask(toRender:from:to:at:) makes the render task behave synchronously, as if the CPU and GPU were operating as a single unit.