mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8058550: Clarify that TimerTasks are not reusable
Reviewed-by: alanb, chegar
This commit is contained in:
parent
f1cc7f5119
commit
865fe20405
1 changed files with 6 additions and 2 deletions
|
@ -26,10 +26,14 @@
|
|||
package java.util;
|
||||
|
||||
/**
|
||||
* A task that can be scheduled for one-time or repeated execution by a Timer.
|
||||
* A task that can be scheduled for one-time or repeated execution by a
|
||||
* {@link Timer}.
|
||||
*
|
||||
* <p>A timer task is <em>not</em> reusable. Once a task has been scheduled
|
||||
* for execution on a {@code Timer} or cancelled, subsequent attempts to
|
||||
* schedule it for execution will throw {@code IllegalStateException}.
|
||||
*
|
||||
* @author Josh Bloch
|
||||
* @see Timer
|
||||
* @since 1.3
|
||||
*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue