Methods
# removeTasksWithType(type)
Removes all tasks with a given type from the scheduler.
Parameters:
Name | Type | Description |
---|---|---|
type |
string
|
The type of tasks to be removed. |
# scheduleTask(type, func, timeoutSeconds)
Schedules a task to be executed after a given timeout.
Parameters:
Name | Type | Description |
---|---|---|
type |
string
|
The type of the task. |
func |
function
|
The function to be executed when the task is triggered. |
timeoutSeconds |
number
|
The timeout after which the task should be executed, in seconds. |