presto-main/src/main/java/io/prestosql/operator/WorkProcessorUtils.java/ProcessWorkProcessor/getResult
class ProcessWorkProcessor:        @Override
        public T getResult()
        {
            checkState(state != null && state.getType() == ProcessState.Type.RESULT, "process() must return true and must not be finished");
            return state.getResult();
        }