PyDocs

Nav

Concurrent Execution

ContextVar

  • ContextVar(name[, *, default])
This class is used to declare a new Context Variable, e.g.:
Members of ContextVar

g

get
Return a value for the context variable for the current context.

n

name
The name of the variable.

r

reset
Reset the context variable.

s

set
Call to set a new value for the context variable in the current context.
0 Examples
No examples for contextvars/ContextVar.
See Also
No see-alsos for contextvars/ContextVar
0 Notes
No notes for ContextVar