[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 b5ad450fa6 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
1 changed files with 0 additions and 4 deletions

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.