mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
14 lines
138 B
Python
14 lines
138 B
Python
import asyncio
|
|
|
|
|
|
async def foo(y):
|
|
return y + 1
|
|
|
|
|
|
async def print_foo():
|
|
x = await foo(1)
|
|
print(x)
|
|
|
|
|
|
asyncio.run(print_foo())
|