Skip to content

Refactor execution priority to use a counter for microtask and delayed events #8

@caduandrade

Description

@caduandrade

Replace the ExecutionPriority enum (low and high) with an integer counter to manage the balance between microtask and Future.delayed during event execution:

  • 0: Always use microtask.
  • 1: Alternate between microtask and Future.delayed.
  • N > 1: Execute N events with microtask before using Future.delayed.

This change aims to provide finer control over the balance between performance and UI responsiveness, improving flexibility for different use cases.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions