-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Improve EventGenerator lifecycle clarity and control #3420
Copy link
Copy link
Closed
Description
Right now EventGenerator keeps track of its state internally (_active, _current_event, execution count), but that state isn’t clearly exposed or separated in the public API.
Current Limitations
- There’s no clean way to see when the next execution will happen.
- The only lifecycle controls are start() and stop(), which makes temporary suspension awkward.
In more complex models, this makes the generator harder to reason about and sometimes pushes users to inspect private attributes.
Proposed direction
- Add simple introspection properties like
next_scheduled_time. - Based on that, add explicit lifecycle control such as
pause()andresume().
The goal is to make the generator’s state easier to understand and work with.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels