Skip to content

Commit

Permalink
Add a javadoc hint to for when to implement a custom scheduler (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Jan 18, 2024
1 parent 4c20aa3 commit c3db61d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ static Scheduler systemScheduler() {

/**
* Returns a scheduler that delegates to the a {@link ScheduledExecutorService}.
* <p>
* Note that this implementation will ignore scheduling the task if the executor was shutdown or
* the submission was rejected. Consider implementing your own adapter if different behavior is
* required.
*
* @param scheduledExecutorService the executor to schedule on
* @return a scheduler that delegates to the a {@link ScheduledExecutorService}
Expand Down

0 comments on commit c3db61d

Please sign in to comment.