0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

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:
Andrew Godwin 2020-04-13 23:26:16 -06:00 committed by GitHub
parent 53d229ff63
commit b5ad450fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,10 +227,6 @@ 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.