From 05b7d4c8d94b0609b751c24163997f910ed2ba31 Mon Sep 17 00:00:00 2001 From: Mariana Meireles Date: Fri, 27 Jan 2023 11:58:24 -0800 Subject: [PATCH] Small typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks Luciano! ❤️ --- 18-asyncio/spinner_asyncio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/18-asyncio/spinner_asyncio.py b/18-asyncio/spinner_asyncio.py index 3366998..58f5e89 100644 --- a/18-asyncio/spinner_asyncio.py +++ b/18-asyncio/spinner_asyncio.py @@ -34,7 +34,7 @@ def slow_function(): # <5> @asyncio.coroutine def supervisor(): # <7> - spinner = asyncio.async(spin('thinking!')) # <8> + spinner = asyncio.create_task(spin('thinking!')) # <8> print('spinner object:', spinner) # <9> result = yield from slow_function() # <10> spinner.cancel() # <11>