Kameloso.Throttle

Aggregate of values and state needed to rate-limit outgoing messages.

class Kameloso
private static
struct Throttle {}

Postblit

this(this)
this(this)

Don't copy this, just keep one instance.

Members

Functions

reset
void reset()

Resets the throttle values in-place.

Manifest constants

bump
enum bump;

By how much to bump y on sent message.

Variables

m
double m;

y at t0 (ergo y at x = 0, weight at last sent message).

t0
MonoTime t0;

Origo of x-axis (last sent message).