# `BB.TUI.State.Throttle`
[🔗](https://github.com/mcass19/bb_tui/blob/v0.3.0/lib/bb/tui/state/throttle.ex#L1)

High-rate sensor handling, split out of `BB.TUI.State`.

`debounce_ms` + `last_seen` back the event-log debounce in
`BB.TUI.State.append_event/3`; `flush_ms` + `render_pending?` drive the
coalesced sensor re-render in `BB.TUI.App`. Defaults: 1s debounce window,
~33ms (~30fps) flush. A `debounce_ms` of `0` disables debouncing.

# `t`

```elixir
@type t() :: %BB.TUI.State.Throttle{
  debounce_ms: non_neg_integer(),
  flush_ms: pos_integer(),
  last_seen: %{optional({list(), term()}) =&gt; integer()},
  render_pending?: boolean()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
