Skip to content

fix(sandbox): single-flight cached dependency factories - #4178

Merged
seratch merged 1 commit into
mainfrom
fix/sandbox-dependency-single-flight
Aug 4, 2026
Merged

fix(sandbox): single-flight cached dependency factories#4178
seratch merged 1 commit into
mainfrom
fix/sandbox-dependency-single-flight

Conversation

@seratch

@seratch seratch commented Aug 4, 2026

Copy link
Copy Markdown
Member

This pull request takes over and completes the original work in #3935 by @cosin2077.

It fixes cached sandbox dependency factories so concurrent requests for the same key share one in-flight initialization and cached result. It also keeps shared initialization alive when an individual waiter is cancelled, allows failed factories to be retried, and prevents rebind or shutdown races from returning disposed dependencies or closing aliased owned resources prematurely.

Co-authored-by: cosin2077 <bermasunita6@gmail.com>
@seratch seratch added this to the 0.19.x milestone Aug 4, 2026
@seratch
seratch merged commit eb02f60 into main Aug 4, 2026
9 checks passed
@seratch
seratch deleted the fix/sandbox-dependency-single-flight branch August 4, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant