mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-01-02 16:14:25 +00: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