Options to configure the EventEmitter

interface BufferedEventEmitterOptions {
    maintenanceChance?: number;
    ttl?: number;
}

Properties

maintenanceChance?: number

Every call to some methods will have a chance to run the maintenance, witch is the process of remove expired buffers not flushed. This number define the chance of this process happen on a method call (percent); Example: 10 => 10% chance of running maintenance

ttl?: number

TimeToLive: Time in seconds that the buffer can exists without activity. After this period it isn't valid anymore and can eventually be removed.

Example: 10

Generated using TypeDoc