JobScheduler.addJob

Adds a simple job that executes the given function according to the given schedule.

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

Parameters

fn void function
()

A function to execute.

schedule JobSchedule

The schedule defining when to execute the function.

Return Value

The scheduled job.

Meta