| 1234567891011121314151617181920212223242526272829303132 |
- import asyncio
- import sys
- import pathlib
- test_file = pathlib.Path(__file__)
- project = test_file.parent.parent
- sys.path.append(str(project))
- import server_source as source
- from test import test
- async 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())
|