• returns a predicate function which returns true if we're not out of governance, false if we have reached time remaining and/or units thresholds.

    Example

    // defaults to 200 units threshold and starts elapsed time tracking at this invocation
    sequence.takeWhile(governanceRemains())

    Parameters

    • startTime: number = ...

      when to start counting elapsed time for clock-time governance, ms since the epoch (e.g. Date.now())

    • minutes: number = 45

      threshold for maximum number of minutes allowed to elapse

    • units: number = 200

      threshold for minimum remaining governance units

    Returns (() => boolean)

      • (): boolean
      • Returns boolean

Generated using TypeDoc