summaryrefslogtreecommitdiff
path: root/Lib/asyncio/threads.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/asyncio/threads.py')
-rw-r--r--Lib/asyncio/threads.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/threads.py b/Lib/asyncio/threads.py
index 51e0ba95d8..34b7513a42 100644
--- a/Lib/asyncio/threads.py
+++ b/Lib/asyncio/threads.py
@@ -17,7 +17,7 @@ async def to_thread(func, /, *args, **kwargs):
allowing context variables from the main thread to be accessed in the
separate thread.
- Return an asyncio.Future which represents the eventual result of *func*.
+ Return a coroutine that can be awaited to get the eventual result of *func*.
"""
loop = events.get_running_loop()
ctx = contextvars.copy_context()