waitUntilRunning()
Stops further execution of your code until the layer renderer leaves the paused state.
Declaration
func waitUntilRunning()Discussion
Call this function to let the system handle events while you wait for the layer to become ready. The function services incoming layer-related events until the layer exits the paused state.