Clear the thread-local context. The typical use-case for this function is to invoke it early in request-handling code. .. versionadded:: 19.2.0 .. deprecated:: 22.1.0
()
| 283 | |
| 284 | |
| 285 | def clear_threadlocal() -> None: |
| 286 | """ |
| 287 | Clear the thread-local context. |
| 288 | |
| 289 | The typical use-case for this function is to invoke it early in |
| 290 | request-handling code. |
| 291 | |
| 292 | .. versionadded:: 19.2.0 |
| 293 | .. deprecated:: 22.1.0 |
| 294 | """ |
| 295 | _deprecated() |
| 296 | _CONTEXT.context = {} |
| 297 | |
| 298 | |
| 299 | def bind_threadlocal(**kw: Any) -> None: |
searching dependent graphs…