Runs the scheduler. This works by popping the next scheduled task from the priority queue (since scheduled tasks are ordered by their next execution date) and sleeping until we reach that task's execution date.
Adds a job to the scheduler.
Adds a job to the scheduler, with the given schedule to define when it should be run.
Adds a simple job that executes the given function according to the given schedule.
Adds a job to the scheduler, whose schedule is defined by the given cron expression string.
Starts the scheduler. Once started, there is no guarantee that all scheduler implementations will allow adding new jobs while running.
Stops the scheduler.
Stops the scheduler, and waits for any currently-executing jobs to finish. Functionally equivalent to calling stop(false).
A simple thread-based scheduler that sleeps until the next task, and runs it using a task pool.