presto-main/src/main/java/io/prestosql/operator/ExplainAnalyzeOperator.java/ExplainAnalyzeOperator/hasFinalStageInfo
class ExplainAnalyzeOperator:    private boolean hasFinalStageInfo(StageInfo stageInfo)
    {
        boolean isFinalStageInfo = isFinalStageInfo(stageInfo);
        if (!isFinalStageInfo) {
            try {
                TimeUnit.MILLISECONDS.sleep(100);
            }
            catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
        return isFinalStageInfo(stageInfo);
    }