![]() Performance compared to the default size of 1. Using a large value for chunksize can significantly improve The (approximate) size of these chunks can be specified by Into a number of chunks which it submits to the pool as separate When using ProcessPoolExecutor, this method chops iterables Raised when its value is retrieved from the iterator. If a func call raises an exception, then that exception will be ![]() ![]() None, there is no limit to the wait time. If _next_() is called and the result isn’t availableĪfter timeout seconds from the original call to Executor.map(). The returned iterator raises a TimeoutError The iterables are collected immediately rather than lazily įunc is executed asynchronously and several calls to result ()) map ( func, * iterables, timeout = None, chunksize = 1 ) ¶ submit ( pow, 323, 1235 ) print ( future. With ThreadPoolExecutor ( max_workers = 1 ) as executor : future = executor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |