-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Milestone
Description
Motivations:
- Although an effect is reusable after
dispose, a manual call is needed to activate it. - For an async primitive, if you
disposeit before ongoing recomputation finishes, dependencies be re-added after that
Consider:
- Maybe setting
call_immediatelytoFalseby default and ensure "first call" in__enter__.- A new flag
_is_first_timeis needed. This is acceptable and would improve the warning message forreactivity_loss_strategy - We can await the first call in async primitives'
__aenter__hook, which is very Pythonic to me
- A new flag
- What's the cases when people want to stop and reuse a
BaseComputationlater? Why don't they just construct a new one (which should not be very expensive). If it is expensive, maybe we can add apauseandresumemethod to cover those cases. Dependencies can be retained during the pausing period.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels