class_docstr: Pool using MPI processes as workers.
docstr: Asynchronous version of `map()` returning `MapResult`.
docstr_tok: ["Asynchronous","version","of","`","map","(",")","`","returning","`","MapResult","`","."]
code: def map_async(
      self,
      func,
      iterable,
      chunksize=None,
      callback=None,
      error_callback=None,
  ):
      """Asynchronous version of `map()` returning `MapResult`."""
      # pylint: disable=too-many-arguments
      iterable, chunksize = _chunksize(self, iterable, chunksize)
      result_iterator = self.imap(func, iterable, chunksize=chunksize)
      future = _async_executor(self).submit(list, result_iterator)
      return MapResult(future, callback, error_callback)
  
imports: from os import cpu_count
  import functools
  import operator
  import threading
  import warnings
  import weakref
  from ..None import futures
label_desc: Use image node_id 5 for calling the Pool obj's underlying member method code with example usage: obj.map_async(func, iterable, chunksize, callback, error_callback) and returns: MapResult