mirror of https://github.com/django/django.git
Refs #31224 -- Removed incorrect @sync_to_async(thread_sensitive=True) example.
It does not support thread_sensitive when used as a decorator, yet.
This commit is contained in:
parent
53d229ff63
commit
b5ad450fa6
|
@ -227,10 +227,6 @@ as either a direct wrapper or a decorator::
|
||||||
def sync_function(...):
|
def sync_function(...):
|
||||||
...
|
...
|
||||||
|
|
||||||
@sync_to_async(thread_sensitive=True)
|
|
||||||
def sensitive_sync_function(...):
|
|
||||||
...
|
|
||||||
|
|
||||||
Threadlocals and contextvars values are preserved across the boundary in both
|
Threadlocals and contextvars values are preserved across the boundary in both
|
||||||
directions.
|
directions.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue