- task
- the task to schedule.
- delay
- amount of time in milliseconds before execution.
Type Reason Java.Lang.IllegalArgumentException if delay . Java.Lang.IllegalStateException if the Timer has been canceled, or if the task has been scheduled or canceled.
Schedule a task for single execution after a specified delay.