mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-05-21 22:57:29 +08:00
Merge "forall: use a generator to map the Pool"
This commit is contained in:
commit
a38769cda8
@ -212,8 +212,8 @@ without iterating through the remaining projects.
|
|||||||
config = self.manifest.manifestProject.config
|
config = self.manifest.manifestProject.config
|
||||||
results_it = pool.imap(
|
results_it = pool.imap(
|
||||||
DoWorkWrapper,
|
DoWorkWrapper,
|
||||||
[[mirror, opt, cmd, shell, cnt, config, self._SerializeProject(p)]
|
([mirror, opt, cmd, shell, cnt, config, self._SerializeProject(p)]
|
||||||
for cnt, p in enumerate(projects)]
|
for cnt, p in enumerate(projects))
|
||||||
)
|
)
|
||||||
pool.close()
|
pool.close()
|
||||||
for r in results_it:
|
for r in results_it:
|
||||||
|
Loading…
Reference in New Issue
Block a user