moderator-toolbox-nxg-for-reddit / modules/modbar/features/apiBudget

modules/modbar/features/apiBudget

Functions

createApiBudgetHandlers()

createApiBudgetHandlers(): object

Defined in: extension/data/modules/modbar/features/apiBudget.ts:15

Starts polling the background for the API budget. Polling a background message is free (no network), and this only runs when debug mode is on.

Returns

object

The store for the readout and a cleanup that stops polling.

cleanup

cleanup: () => Promise<void>

Returns

Promise<void>

store