import asyncio
from util import delay


async def add_one(number: int) -> int:
    return number + 1


async def hello_world_message() -> str:
    await delay(1)
    return 'Hello world!'


async def hello_every_second():
    for i in range(2):
        await asyncio.sleep(1)
        print('пока я жду, исполняется другой код')


async def main() -> None:
    result = asyncio.run(add_one(1))
    print(result)

    """
    first_delay = asyncio.create_task(delay(3))
    second_delay = asyncio.create_task(delay(3))
    
    await hello_every_second()
    await first_delay
    await second_delay
    """
    


if __name__ == '__main__':

    result = asyncio.run(add_one(1))
    print(result)
    
    # asyncio.run(main())