Function singletick

Wraps a function with a single event loop ticking behavior.

  • Type Parameters

    • T extends ((...args: any[]) => any)

    Parameters

    • run: T

      The function to be wrapped.

    Returns T & IClearable

    A wrapped function that executes with a single ticking behavior.

Properties

Properties

delay: number