mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-15 12:21:30 +00:00
qmk format-python
This commit is contained in:
parent
0110a4f79d
commit
bf40eebf73
@ -4,6 +4,7 @@ import contextlib
|
||||
import functools
|
||||
import multiprocessing
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
def parallelize(do_parallel):
|
||||
"""Returns a function that can be used in place of a map() call.
|
||||
@ -24,4 +25,3 @@ def parallelize(do_parallel):
|
||||
|
||||
with multiprocessing.Pool() as pool:
|
||||
yield pool.imap_unordered
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user