presto-main/src/main/java/io/prestosql/operator/DriverContext.java/DriverContext/isDone
class DriverContext:    public boolean isDone()
    {
        return finished.get() || pipelineContext.isDone();
    }