3 ms·
The concurrent.futures module handles exceptions well, waiting to raise them until you call ``future.result``. Or did I misunderstand the problem?
by xapata 9y ago
The concurrent.futures module handles exceptions well, waiting to raise them until you call ``future.result``.
Or did I misunderstand the problem?
- rcthompson 9y agoMy complaints are about the multiprocessing module, and my hope is that concurrent.futures will solve some of them.
- xapata 9y agoThe latter library has a better design in some respects, but isn't quite as pleasant as ``Pool.imap_unordered`` when you're not worried about exceptions in the subprocesses/threads. However, I've been using ``concurrent.futures`` more in the last year.