Advertisement
Guest User

Untitled

a guest
Dec 13th, 2021
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # run numpy.save 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
  4.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement