def imap(self, function, *iterables):
"""This is the same as :func:`itertools.imap`, and has the same
concurrency and memory behavior as :meth:`starmap`.
+ It's quite convenient for, e.g., farming out jobs from a file::
+ return do_something(line)
+ for result in pool.imap(worker, open("filename", 'r')):
return self.starmap(function, itertools.izip(*iterables))