public void finish() {
        synchronized (taskMutex) {
            cancel();
            postEvent(new WorkerTaskEvent<>(this, WorkerTaskEventType.FINISHED, null, null, null, null));
            checkTaskDisposal();
        }
    }
Call this method to "finish" a task (means: when result is processed)
main/src/main/java/cgeo/geocaching/utils/workertask/WorkerTask.java