Function hasElapsed

  • A function that returns true when an interval has elapsed

    import { hasElapsed } from "https://unpkg.com/ixfx/dist/flow.js"
    const oneSecond = hasElapsed(1000);

    // Keep calling to check if time has elapsed.
    // Will return _true_ when it has
    oneSecond();

    Parameters

    Returns (() => boolean)

      • (): boolean
      • Returns boolean