JobScheduler.addJob

Adds a job to the scheduler, with the given schedule to define when it should be run.

  1. ScheduledJob addJob(Job job, JobSchedule schedule)
    interface JobScheduler
  2. ScheduledJob addJob(void function() fn, JobSchedule schedule)

Parameters

job Job

The job to be added.

schedule JobSchedule

The schedule defining when the job is run.

Return Value

The scheduled job.

Meta