This is a visualization of throttle
and takeLast
transformers work. Details are below.
Let's start with a button:
Each click on it is represented on a following timeline:
The button is supposed to sends some http request to a "server". Let's put some event handlers!
From now the button will send requests (fake ones).
If you clicked fast enough you could send pretty much requsets.
Let's limit request amount via throttle
Now independently of how fast you click, requests will be sent at maximum ratio of 1 per second.
This example shows search wiki stuff
loading...This example shows search wiki stuff
This example shows search wiki stuff
Available varibles:
fetch
button
timeLine
spinner
getN
output
throttle
takeLast
watchPromise