tinybench - v4.0.1
    Preparing search index...

    Type Alias FnHook

    FnHook: (this: Task, mode?: "run" | "warmup") => Promise<void> | void

    The task hook function signature If warmup is enabled, the hook will be called twice, once for the warmup and once for the run.

    Type declaration

      • (this: Task, mode?: "run" | "warmup"): Promise<void> | void
      • Parameters

        • this: Task
        • Optionalmode: "run" | "warmup"

          the mode where the hook is being called

        Returns Promise<void> | void