We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3538a0 commit b670c3bCopy full SHA for b670c3b
1 file changed
asyncio_tutorial/part_I_asyncio_intro/tasks.py
@@ -1,10 +1,10 @@
1
"""Create task from coroutine which displays a value after a delay."""
2
import asyncio
3
from asyncio import Task
4
-from typing import Callable
+from typing import Coroutine
5
6
7
-async def create_task(coroutine: Callable) -> Task:
+async def create_task(coroutine: Coroutine) -> Task:
8
"""
9
Create asyncio tasks to be executed.
10
0 commit comments