Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # run numpy.save on the default thread pool
- save_done = asyncio.get_running_loop().run_in_executor( None, numpy.save, path, data )
- # save_done is an awaitable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement