Cell API
    Preparing search index...

    Hierarchy

    • CronJob
      • FaaSCronJob
    Index
    clock: Clock
    fireOnTick: Function

    Function using to fire onTick, default set to an inner private function. Overwrite this only if you have a really good reason to do so.

    running: boolean | undefined

    Return true if job is running.

    tickDisposable?: any
    • Add another onTick function.

      Parameters

      • callback: Function

        Target function.

      Returns void

    • Tells you the last execution date.

      Returns Date

    • Tells you when a CronTime will be run.

      Returns Moment

    • Returns Moment

    • Tells you when a CronTime will be run.

      Parameters

      • Optionali: number

        Indicate which turn of run after now. If not given return next run time.

      Returns Moment | Moment[]

      A Moment when the cronTime passed in the constructor is a Date or a Moment and an array of Moment when the cronTime is a string

    • Change the time for the CronJob.

      Parameters

      • time: CronTime

        Target time.

      Returns void