Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

async asyncio input

async def ainput(string: str) -> str:
    await asyncio.get_event_loop().run_in_executor(
            None, lambda s=string: sys.stdout.write(s+' '))
    return await asyncio.get_event_loop().run_in_executor(
            None, sys.stdin.readline)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #async #asyncio #input
ADD COMMENT
Topic
Name
2+8 =