Skip to content

Commit

Permalink
[3.0.x] Refs #31224 -- Removed incorrect @sync_to_async(thread_sensit…
Browse files Browse the repository at this point in the history
…ive=True) example.

It does not support thread_sensitive when used as a decorator, yet.
Backport of b5ad450 from master
  • Loading branch information
andrewgodwin authored and felixxm committed Apr 14, 2020
1 parent eeab4ab commit d292d11
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/topics/async.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit d292d11

Please sign in to comment.