Skip to content

Commit 732279c

Browse files
Update src/main/java/nl/knaw/dans/lib/util/pollingtaskexec/TaskSource.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 28cb5b1 commit 732279c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/nl/knaw/dans/lib/util/pollingtaskexec/TaskSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
/**
2121
* Represents a source of tasks from which tasks can be fetched. Implementations of this interface are responsible for providing the logic to retrieve the next available input that represents one
22-
* task to be executed, returning an empty Optional if no tasks are available. This method is run within a @UnitOfWork to ensure that any updates it makes to the database are visible by the
23-
* resulting tasks.
22+
* task to be executed, returning an empty Optional if no tasks are available. When invoked by {@code PollingTaskExecutor}, this method is run within a {@code @UnitOfWork} so that any updates it
23+
* makes to the database are visible to the resulting tasks.
2424
*
2525
* @param <R> the type of the input used to create or schedule a task
2626
*/

0 commit comments

Comments
 (0)