Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZiniuLu/Python-100-Days
/ main
Function
main
Day66-75/code/asyncio01.py:12–18 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
10
11
12
def
main():
13
loop = asyncio.get_event_loop()
14
tasks = [
15
countdown(
"A"
, 10), countdown(
"B"
, 5),
16
]
17
loop.run_until_complete(asyncio.wait(tasks))
18
loop.close()
19
20
21
if
__name__ ==
'__main__'
:
Callers
1
asyncio01.py
File · 0.70
Calls
1
countdown
Function · 0.70
Tested by
no test coverage detected