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
The contextvars approach to context propagation requires copying current context on asyncio task creation. This is done internally in asyncio for Python 3.7; however, on Python <3.7 context is not propagated automatically.
As I understand aiotask-context has the same problems especially the last one. Big advantage of aiocontextvars is drop-in replacement original context without code modification.
The contextvars approach to context propagation requires copying current context on asyncio task creation. This is done internally in asyncio for Python 3.7; however, on Python <3.7 context is not propagated automatically.
Example:
In Python 3.7, the code above will print
foo task: foo
In Python 3.5 and 3.6, the code above will print
foo task: bar
The text was updated successfully, but these errors were encountered: