Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python async get result

done, pending = loop.run_until_complete(asyncio.wait( tasks))
for future in done:
    value = future.result() #may raise an exception if coroutine failed
    # do something with value
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #async #result
ADD COMMENT
Topic
Name
2+9 =