Administrator
2024-11-21 d99f8a74c3a5e9af6d295cc6ab7d40ed8dce2fe6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import asyncio
import time
 
 
async def coroutine_function():
    # print("Start coroutine function")
    time.sleep(1)
    # print("Coroutine function completed")
 
 
async def main():
    print("Start main")
    asyncio.gather(
        coroutine_function()
    )
    print("Main completed")
 
 
main()