Skip to content

Return lifetimes to Scope and friends#785

Merged
frankmcsherry merged 7 commits intoTimelyDataflow:masterfrom
frankmcsherry:relifetime_scope
Apr 11, 2026
Merged

Return lifetimes to Scope and friends#785
frankmcsherry merged 7 commits intoTimelyDataflow:masterfrom
frankmcsherry:relifetime_scope

Conversation

@frankmcsherry
Copy link
Copy Markdown
Member

Experimentation with removing lifetimes from Scope were not a success. The lack of static checks meant that un-diligent implementors (Claude, and folks who use it, like me) write code that they believe is correct, but is not because we were using diligence is place of static checks. This PR returns lifetimes explicitly, rather than nestled behind a Scope trait that hid the dependence. The lifetime now exists in Stream, OperatorBuilder, and a few other places. These types are all lifetime'd, and shall not outlive the closure that constructs them (an HRTB on lifetimes is meant to prevent this, but who knows what async is permitted to do these days).

@frankmcsherry frankmcsherry merged commit 52ecffb into TimelyDataflow:master Apr 11, 2026
17 of 18 checks passed
@github-actions github-actions bot mentioned this pull request Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant