Class

Scheduler

Scheduler()

A class that manages scheduled tasks.
Constructor

# new Scheduler()

View Source lib/events/Scheduler.ts, line 8

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.

View Source lib/events/Scheduler.ts, line 78

# 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.

View Source lib/events/Scheduler.ts, line 87