Aller au contenu principal
Version: Next

IJob

Index

Methods

optionalonComplete

  • onComplete(result: any): any
  • A function that will fire when the job is stopped with job.stop(), and may also be called by onTick at the end of each run.

onTick

  • onTick(): any
  • The function to fire at the specified time. If an onComplete callback was provided, onTick will receive it as an argument. onTick may call onComplete when it has finished its work.