1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

sync.pool: simplify usages of pool.work_on_items

This commit is contained in:
Alexander Medvednikov
2020-03-05 18:37:57 +01:00
committed by GitHub
parent 9c1e50b1aa
commit a8e45251c4
4 changed files with 14 additions and 9 deletions

View File

@ -45,5 +45,5 @@ fn main() {
// cases is what you want anyway... You can override the automatic choice
// by setting the VJOBS environment variable too.
// fetcher_pool.set_max_jobs( 4 )
fetcher_pool.work_on_items<int>(ids)
fetcher_pool.work_on_items(ids)
}