SHOW:
|
|
- or go back to the newest paste.
1 | - | import concurrent.futures |
1 | + | # run numpy.save on the default thread pool |
2 | - | |
2 | + | save_done = asyncio.get_running_loop().run_in_executor( None, numpy.save, path, data ) |
3 | - | threadpool = concurrent.futures.ThreadPoolExecutor( max_workers=3 ) |
3 | + | |
4 | - | |
4 | + |