javanna commented on code in PR #12574:
URL: https://github.com/apache/lucene/pull/12574#discussion_r1331497358
##########
lucene/core/src/java/org/apache/lucene/search/TaskExecutor.java:
##########
@@ -85,11 +85,24 @@ final <T> List<T> invokeAll(Collection<Task<T>> tasks)
throws IOException {
return results;
}
- final <C> Task<C> createTask(Callable<C> callable) {
+ /**
+ * Creates a task given the provided {@link Callable}
+ *
+ * @param callable the callable to be executed as part of the task
+ * @return the created task
+ * @param <C> the return type of the task
+ */
+ public <C> Task<C> createTask(Callable<C> callable) {
return new Task<>(callable);
}
- static class Task<V> extends FutureTask<V> {
+ /**
+ * Extension of {@link FutureTask} that tracks the number of tasks that are
running in each
+ * thread.
+ *
+ * @param <V> the return tyupe of the task
Review Comment:
Thanks @gf2121
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]