presto-main/src/main/java/io/prestosql/operator/WorkProcessor.java/WorkProcessor/finishWhen
class WorkProcessor:    default WorkProcessor<T> finishWhen(BooleanSupplier finishSignal)
    {
        return WorkProcessorUtils.finishWhen(this, finishSignal);
    }