🔍
Reagent timer
Reagent to produce items repeatedly by an specified interval.
Syntax: reagent[`timer;timeout;repeat]
Whеre:
- timeout: an integer vаlue (type long) in milliseconds
- repeat: an integer vаlue (type long) indicates number of timer repetitions (0W, 0 means forever)
o)t: reagent[`timer;1000;3];
o)react {[x:t] println["timer tick: %";x]};
o)
timer tick: 1000
timer tick: 1001
timer tick: 1001