Skip to content

Commit

Permalink
Refs #31224 -- Removed incorrect @sync_to_async(thread_sensitive=True…
Browse files Browse the repository at this point in the history
…) example.

It does not support thread_sensitive when used as a decorator, yet.
  • Loading branch information
andrewgodwin committed Apr 14, 2020
1 parent 53d229f commit b5ad450
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 @@ -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.

Expand Down

0 comments on commit b5ad450

Please sign in to comment.