makePeriodicValue: Make a periodically re-evaluated value-returning function.

Description Usage Arguments Value

View source: R/perodicvalue.R

Description

Make a periodically re-evaluated value-returning function.

Usage

1
makePeriodicValue(fun, period, ...)

Arguments

fun

Function that generates a value.

period

Period, inseconds, after which to refresh the value.

...

Other arguments to be passed to the value-generating function.

Value

A function that returns a value, provided by the value-generating function, and refreshes it after the provided refresh period.


Spiritspeak/often documentation built on Feb. 2, 2021, 11:41 a.m.