/** * If there is running task, block until its completion and return result. * * @return last task's result or null if no tasks were run yet */ @Nullable public V getResult() { if (taskHandler != null) return taskHandler.getResult(); else return null; }