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.
// defaults to 200 units threshold and starts elapsed time tracking at this invocationsequence.takeWhile(governanceRemains())
when to start counting elapsed time for clock-time governance, ms since the epoch (e.g. Date.now())
threshold for maximum number of minutes allowed to elapse
threshold for minimum remaining governance units
Generated using TypeDoc
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