private TaskHandle addTask() {
            final TaskHandle taskHandle = new TaskHandle();
            synchronized (taskMonitor) {
                pendingTasks.add(taskHandle);
            }
            return taskHandle;
        }
Wrapper around CountDownLatch for single-occurrence events.
jdisc_core/src/main/java/com/yahoo/jdisc/test/ServerProviderConformanceTest.java