You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem Statement
Now that Django is gradually adding async support, thread locals should be eschewed in favor of locals that work in async context.
Describe the solution you'd like
We should use asgiref.local when it is available.
Describe alternatives you've considered
We could use contextvars directly, but this approach is simpler since asgiref is a dependency of newer Django versions.
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Problem Statement
Now that Django is gradually adding async support, thread locals should be eschewed in favor of locals that work in async context.
Describe the solution you'd like
We should use
asgiref.local
when it is available.Describe alternatives you've considered
We could use contextvars directly, but this approach is simpler since asgiref is a dependency of newer Django versions.
Additional context
N/A
The text was updated successfully, but these errors were encountered: