View difference between Paste ID: 5jCPq91u and 3YCXU02t
SHOW: | | - or go back to the newest paste.
1-
# run numpy.save on the default thread pool
1+
# run numpy.save( path, data ) on the default thread pool
2
save_done = asyncio.get_running_loop().run_in_executor( None, numpy.save, path, data )
3-
# save_done is an awaitable
3+
# save_done is an awaitable (for determining completion and gettting the return value or exception thrown)