Преглед изворни кода

Refs #31224 -- Removed incorrect @sync_to_async(thread_sensitive=True) example.

It does not support thread_sensitive when used as a decorator, yet.
Andrew Godwin пре 5 година
родитељ
комит
b5ad450fa6
1 измењених фајлова са 0 додато и 4 уклоњено
  1. 0 4
      docs/topics/async.txt

+ 0 - 4
docs/topics/async.txt

@@ -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.