|
39 | 39 | * Default implementation of {@link Task}. Throughout the task (or job), |
40 | 40 | * {@link Task#setProgressValue(long)} can be called to inform |
41 | 41 | * how the job is progressing. |
42 | | - * |
| 42 | + * <p> |
43 | 43 | * Asynchronous case: |
44 | | - * - A job (runnable) is sent for execution to the linked {@link ThreadService}. |
| 44 | + * A job (runnable) is sent for execution to the linked {@link ThreadService}. |
45 | 45 | * It reports status updates via the linked {@link EventService}. |
46 | 46 | * A {@link org.scijava.task.event.TaskEvent} is sent before the job |
47 | 47 | * is started and when finished. |
|
50 | 50 | * by calling {@link Future#cancel(boolean)}. |
51 | 51 | * This default behaviour can be supplemented by an additional |
52 | 52 | * custom callback which can be set in {@link Task#setCancelCallBack(Runnable)}. |
53 | | - * |
| 53 | + * </p> |
| 54 | + * <p> |
54 | 55 | * Synchronous case: |
55 | | - * - A job that reports its status in between calls of {@link Task#start()}, |
| 56 | + * A job that reports its status in between calls of {@link Task#start()}, |
56 | 57 | * and {@link Task#finish()}. It also reports its status via |
57 | 58 | * the linked {@link EventService}. |
58 | 59 | * Start and finish calls allow publishing proper {@link org.scijava.task.event.TaskEvent} |
59 | 60 | * to subscribers (with the EventService). |
60 | 61 | * Upon cancellation of a synchronous task, it is the responsibility |
61 | 62 | * of the synchronous task to handle its own cancellation through |
62 | 63 | * a custom callback which can be set via {@link Task#setCancelCallBack(Runnable)}. |
| 64 | + * </p> |
63 | 65 | * |
64 | | - * @author Curtis Rueden, Nicolas Chiaruttini |
| 66 | + * @author Curtis Rueden |
| 67 | + * @author Nicolas Chiaruttini |
65 | 68 | */ |
66 | 69 | public class DefaultTask implements Task { |
67 | 70 |
|
|
0 commit comments