Tankōbon / lib/reading-time / createReadingTimeAccumulator
Function: createReadingTimeAccumulator()
createReadingTimeAccumulator(
send,flushAfter?):ReadingTimeAccumulator
Defined in: lib/reading-time.ts:18
Builds an accumulator that calls send with whole seconds, never more than FLUSH_AFTER_SECONDS plus one tick.
Parameters
send
(seconds) => void
flushAfter?
number = FLUSH_AFTER_SECONDS