Skip to content

Commit

Permalink
add starmap method
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed May 18, 2019
1 parent 4ed9289 commit 16d66e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion schwimmbad/serial.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Standard library
from __future__ import division, print_function, absolute_import, unicode_literals
from itertools import starmap

# Project
from .pool import BasePool
Expand Down Expand Up @@ -50,3 +50,6 @@ def map(self, func, iterable, callback=None):
"""
return self._call_callback(callback, map(func, iterable))

def starmap(self, func, iterable, callback=None):
return self._call_callback(callback, starmap(func, iterable))

0 comments on commit 16d66e0

Please sign in to comment.