Promise-decorators examples

Basic visualisation

This is a visualization of throttle and takeLast transformers work. Details are below.

What it does

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.

Wiki search

This example shows search wiki stuff

Mouse move

This example shows search wiki stuff

Custom

This example shows search wiki stuff

Settings:
Code (editable):

Available varibles: fetch button timeLine spinner getN output throttle takeLast watchPromise