File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -88,16 +88,16 @@ Calling it creates and returns a :ref:`coroutine <coroutine>` object.
8888
8989::
9090
91- async def special_fella (magic_number: int):
91+ async def loudmouth_penguin (magic_number: int):
9292 print(
93- "I am a super special function . Far cooler than that printer. "
93+ "I am a super special talking penguin . Far cooler than that printer. "
9494 f"By the way, my lucky number is: {magic_number}."
9595 )
9696
9797Note that calling it does not execute the function::
9898
99- >>> special_fella (magic_number=3)
100- <coroutine object special_fella at 0x104ed2740>
99+ >>> loudmouth_penguin (magic_number=3)
100+ <coroutine object loudmouth_penguin at 0x104ed2740>
101101
102102The terms "asynchronous function" and "coroutine object" are often conflated
103103as coroutine.
@@ -166,7 +166,7 @@ to specify the event loop.
166166::
167167
168168 # This creates a Task object and puts it on the event loop's queue.
169- special_task = asyncio.create_task(coro=special_fella (magic_number=5))
169+ task = asyncio.create_task(coro=loudmouth_penguin (magic_number=5))
170170
171171=====
172172await
You can’t perform that action at this time.
0 commit comments