PyDocs

Nav

Concurrent Execution

ContextVar.get

  • ContextVar.get([default])
Return a value for the context variable for the current context.

If there is no value for the variable in the current context, the
method will:
 * return the value of the default argument of the method, if
   provided; or
 * return the default value for the context variable, if it was
   created with one; or
 * raise a LookupError.
0 Examples
No examples for contextvars/ContextVar.get.
See Also
No see-alsos for contextvars/ContextVar.get
0 Notes
No notes for ContextVar.get