diff options
| author | Carlton Gibson <carlton.gibson@noumenal.es> | 2020-03-17 20:52:34 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-03-17 20:57:45 +0100 |
| commit | 5c1ad59a0ec92bc1a2aee1bb4bfb5becb061b3fe (patch) | |
| tree | 608ebddda1b2d9b63c55f3ffecd3fa53881b0117 | |
| parent | 2f5c35cf39e4061636150d0ed6cd64bd38be9d7c (diff) | |
[3.0.x] Fixed typo in docs/topics/async.txt.
Backport of f622b490106289e78c727c464d001e01a4f71d8b from master
| -rw-r--r-- | docs/topics/async.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/async.txt b/docs/topics/async.txt index c6fa119984..b502e6b65b 100644 --- a/docs/topics/async.txt +++ b/docs/topics/async.txt @@ -37,7 +37,7 @@ context. If you encounter this error, you should fix your code to not call the offending code from an async context; instead, write your code that talks to async-unsafe in its own, synchronous function, and call that using -:func:`asgiref.sync.async_to_sync`, or any other preferred way of running +:func:`asgiref.sync.sync_to_async`, or any other preferred way of running synchronous code in its own thread. If you are *absolutely* in dire need to run this code from an asynchronous |
