0.1.7 • Published 10 years ago

event-horizon v0.1.7

Weekly downloads
4
License
MIT
Repository
github
Last release
10 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

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago