RateWindow
One provider rate window: published calls per period, counted in fixed windows that start at multiples of period since the Unix epoch (UTC), so they meet the provider's own wall-clock boundaries. The budget enforces limit = published − margin. A hard window refuses until its boundary with no overdraft and is persisted write-ahead when the budget has a store (it guards a provider that bills per period). Build one with the factory RateWindow(name, published, period) { margin = …; hard = … }.
Stable Core. Equality is on every property; toString() prints them.
Types
Link copied to clipboard
Collects the optional properties of a RateWindow. Not thread-safe; use it only inside the factory's lambda.