NS Tools/Framework - v0.0.1
    Preparing search index...

    Function rescheduleIfNeeded

    Reexport governance exports from ./utility/governance

    Use direct imports from './utility/governance' instead.

    • Reschedules the current script using the same deployment id if we're out of governance

      Parameters

      • governancePredicate: () => boolean

        governance checker - if it returns false then script will reschedule.

      • Optionalparams: object

        optional script parameters to provide to the newly scheduled script

      • OptionalparamsCallback: (params?: object) => object

        optional callback that will supply the params object. This can be useful if you have parameters that are updated after the point rescheduleIfNeeded is executed. typically this would be your invocation of governanceRemains()

      Returns () => boolean

      a function that returns the same boolean that the governancePredicate() does ( so it can be invoked by takeWhile() as well)

      results.takeWhile( rescheduleIfNeeded(governanceRemains()) ).filter(...).map(...)