__init__.py 582 B

123456789101112131415161718192021222324252627282930
  1. # -*- coding: utf-8 -*-
  2. """
  3. Event-Throttling und Debouncing.
  4. Begrenzt die Rate von Events und gruppiert häufige Events.
  5. """
  6. from trixy_core.events.throttling.throttle import (
  7. EventThrottler,
  8. ThrottleConfig,
  9. ThrottleResult,
  10. ThrottleStrategy,
  11. )
  12. from trixy_core.events.throttling.debounce import (
  13. EventDebouncer,
  14. DebounceConfig,
  15. DebouncedEvent,
  16. )
  17. __all__ = [
  18. # Throttling
  19. "EventThrottler",
  20. "ThrottleConfig",
  21. "ThrottleResult",
  22. "ThrottleStrategy",
  23. # Debouncing
  24. "EventDebouncer",
  25. "DebounceConfig",
  26. "DebouncedEvent",
  27. ]