MCPcopy 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
12def 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
21if __name__ == '__main__':

Callers 1

asyncio01.pyFile · 0.70

Calls 1

countdownFunction · 0.70

Tested by

no test coverage detected