forge.timers
    Preparing search index...

    Function snapshotRunner

    • Builds the runner for a scheduled timer.

      Parameters

      • ctx: Context

        The context the timer was scheduled from.

      • resolve: (tick: Context) => Promise<unknown>

        What to run, given the context built for that run.

      Returns {
          carries: (timer: Timer) => undefined;
          run: () => Promise<void>;
          runtime: IRunnable;
      }

      The runtime the snapshot came from, the runner, and a way to hand it its timer.