presto-main/src/main/java/io/prestosql/execution/scheduler/ScaledWriterScheduler.java/ScaledWriterScheduler/finish
class ScaledWriterScheduler:    public void finish()
    {
        done.set(true);
        future.set(null);
    }