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

Refactor picobox.contextvars #98

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Refactor picobox.contextvars #98

merged 1 commit into from
Jun 28, 2024

Conversation

ikalnytskyi
Copy link
Owner

There are two main reasons of this refactoring:

  • Switch internal storage from dictionary to WeakKeyDectionary in order to make sure that dependencies got garbage collected once the scope instance is got removed.

  • Add an internal _store property that returns the per-scope store instance to ease set()/get() implementations.

There are two main reasons of this refactoring:

* Switch internal storage from dictionary to WeakKeyDectionary in order
  to make sure that dependencies got garbage collected once the scope
  instance is got removed.

* Add an internal _store property that returns the per-scope store
  instance to ease set()/get() implementations.
@ikalnytskyi ikalnytskyi merged commit 7f836ce into master Jun 28, 2024
15 checks passed
@ikalnytskyi ikalnytskyi deleted the chore/contextvars branch June 28, 2024 09:56
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