| 1234567891011121314151617181920212223242526272829303132 | import asyncioimport sysimport pathlibtest_file = pathlib.Path(__file__)project = test_file.parent.parentsys.path.append(str(project))import server_source as sourcefrom test import testasync def printing():    for count in range(20):        print("Count: #" + str(count + 1))        await asyncio.sleep(0.1)async def hashing():    for count in range(10):        result = await source.password.from_plain_text(            "sample_password"        )        print("Hashed #" + str(count + 1) + " password")async def main():    await asyncio.gather(        hashing(),        printing()    )asyncio.run(main())
 |