From d292d1163e15ceb3d69e3693e13a722ed93c4383 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 13 Apr 2020 23:26:16 -0600 Subject: [PATCH] [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 --- docs/topics/async.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/topics/async.txt b/docs/topics/async.txt index b502e6b65b..b8f05c2e99 100644 --- a/docs/topics/async.txt +++ b/docs/topics/async.txt @@ -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.