MCPcopy Create free account
hub / github.com/ZiniuLu/Python-100-Days / countdown

Function countdown

Day66-75/code/asyncio01.py:5–9  ·  view source on GitHub ↗
(name, num)

Source from the content-addressed store, hash-verified

3
4@asyncio.coroutine
5def countdown(name, num):
6 while num > 0:
7 print(f'Countdown[{name}]: {num}')
8 yield from asyncio.sleep(1)
9 num -= 1
10
11
12def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected