Documentation for method interval

Documentation for method interval, assembled from the following types:

class Supply

From Supply

(Supply) method interval

method interval(Supply:U: $interval$delay = 0 --> Supply:D)

Creates a supply that emits a value every $interval seconds, starting $delay seconds from the call. The value is an integer, starting from 0, and is incremented by one for each value emitted. Note that if the supplied interval is less than one millisecond it will be changed to one millisecond and a warning will be emitted.