JobScheduler.addJob

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

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

Parameters

job Job

The job to be added.

schedule JobSchedule

The schedule defining when the job is run.

Meta