Delays each event by Duration
returned by f
.
Delays each event by Duration
returned by f
.
Instead of being emitted immediately, events are asynchronously delayed and
emitted one after the other, separated by at least time intervals specified by
the function f
.
Assuming that f == (x: Int) => x.seconds
:
this ---1---3-----------------2-------------> throttle(f) ----------1----------3------------2----> time <-1s-> <---3s---> <--2s-->
Note that exceptions on the current stream events
result in unreacting the
resulting event stream.
function that converts each event into a delay
an event stream with the throttled events