summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/contextvars.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/contextvars.rst b/Doc/library/contextvars.rst
index be1dd0c..3580b35 100644
--- a/Doc/library/contextvars.rst
+++ b/Doc/library/contextvars.rst
@@ -144,6 +144,11 @@ Manual Context Management
To get a copy of the current context use the
:func:`~contextvars.copy_context` function.
+ Every thread will have a different top-level :class:`~contextvars.Context`
+ object. This means that a :class:`ContextVar` object behaves in a similar
+ fashion to :func:`threading.local()` when values are assigned in different
+ threads.
+
Context implements the :class:`collections.abc.Mapping` interface.
.. method:: run(callable, *args, **kwargs)