0.1.7 • Published 9 years ago

event-horizon v0.1.7

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

event-horizon

NPM version Downloads

Eats things that happen too many times per time window. A time window in this case is a sliding window.

Example

Simple

var horizon = require('event-horizon').instance({window: 200, max: 50});
horizon.run(function () {
    request(...);
});

With a callback

var horizon = require('event-horizon').instance({window: 200, max: 50});
horizon.run(function () {
    request(...);
}, function () {
    deferred.reject();
});
0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago