Asyncredux throttle mixin

From marcglasberg/async_redux · View interactive version

Asyncredux throttle mixin is an AI agent skill from the GitHub repository marcglasberg/async_redux. Limit how often an AsyncRedux action starts, including per-entity throttle locks and manual refresh.

How to use this skill

Skill file

Throttle rapid dispatches

Throttle admits the first dispatch immediately and silently skips further dispatches

within its interval. Override int get throttle to set milliseconds (default 1000).

The default lock is the action type. Override lockBuilder() with an immutable key

such as (runtimeType, itemId) to throttle each entity independently.

Override ignoreThrottle for a deliberate forced refresh. A failure keeps the lock

by default. Set removeLockOnError to true if a failure should allow immediate retry.

removeLock() and removeAllLocks() clear one lock or all throttle locks in the store.

If the goal is to prevent overlapping runs, use NonReentrant on its own. Use

Fresh for data freshness and Debounce for waiting until input settles.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.