JobScheduler.addCronJob

Adds a job to the scheduler, whose schedule is defined by the given cron expression string.

  1. ScheduledJob addCronJob(Job job, string cronExpressionString)
    interface JobScheduler
    final
    addCronJob
  2. ScheduledJob addCronJob(void function() fn, string cronExpressionString)

Parameters

job Job

The job to be added.

cronExpressionString string

A Cron expression string defining when to run the job.

Return Value

The scheduled job.

Meta