Implements
Methods
Cancels a scheduled task.
| Name | Type | Description |
|---|---|---|
id |
number |
The unique identifier of the task to cancel. |
Initializes the scheduler system and starts the ticker.
Schedules a repeating task.
| Name | Type | Description |
|---|---|---|
func |
(elapsed: number) => void |
The function to execute. |
duration |
number |
The interval duration in milliseconds. |
Returns:
| Type | Description |
|---|---|
| number | The unique identifier for the scheduled task. |