1
0
mirror of https://github.com/django/django.git synced 2025-07-17 16:19:12 +00:00

[3.0.x] Refs #31224 -- Removed incorrect @sync_to_async(thread_sensitive=True) example.

It does not support thread_sensitive when used as a decorator, yet.
Backport of b5ad450fa6d53186b68f89a4507fdbabc8900f74 from master
This commit is contained in:
Andrew Godwin 2020-04-13 23:26:16 -06:00 committed by Mariusz Felisiak
parent eeab4ab82e
commit d292d1163e

View File

@ -120,10 +120,6 @@ in its place. Can be used as either a direct wrapper or a decorator::
def sync_function(...):
...
@sync_to_async(thread_sensitive=True)
def sensitive_sync_function(...):
...
Threadlocals and contextvars values are preserved across the boundary in both
directions.