Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shallow copy resources and resource factories instead of using context chain lookup #129

Merged
merged 13 commits into from
Dec 12, 2024

Conversation

agronholm
Copy link
Member

This prevents background tasks from having access to resources that would be torn down before the tasks themselves.

@agronholm
Copy link
Member Author

I may need to validate this against my commercial app to make sure this doesn't actually break any major design patterns we're using.

@coveralls
Copy link

coveralls commented Oct 19, 2024

Coverage Status

coverage: 97.615% (+0.003%) from 97.612%
when pulling 6b7d235 on context-shallow-copy
into b9ca4fb on 5.0.

src/asphalt/core/_context.py Outdated Show resolved Hide resolved
src/asphalt/core/_context.py Outdated Show resolved Hide resolved
@agronholm agronholm merged commit 1019314 into 5.0 Dec 12, 2024
13 checks passed
@agronholm agronholm deleted the context-shallow-copy branch December 12, 2024 19:43
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.

3 participants