mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[3.0.x] Fixed typo in docs/topics/async.txt.
Backport of f622b490106289e78c727c464d001e01a4f71d8b from master
This commit is contained in:
parent
2f5c35cf39
commit
5c1ad59a0e
@ -37,7 +37,7 @@ context.
|
|||||||
If you encounter this error, you should fix your code to not call the offending
|
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
|
code from an async context; instead, write your code that talks to async-unsafe
|
||||||
in its own, synchronous function, and call that using
|
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.
|
synchronous code in its own thread.
|
||||||
|
|
||||||
If you are *absolutely* in dire need to run this code from an asynchronous
|
If you are *absolutely* in dire need to run this code from an asynchronous
|
||||||
|
Loading…
x
Reference in New Issue
Block a user