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

as casting

This commit is contained in:
Alexander Medvednikov
2019-12-30 10:45:56 +01:00
parent 2d597d7804
commit cba6a6fdea
3 changed files with 18 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import json
import sync
const (
NR_THREADS = 4
nr_threads = 4
)
struct Story {
@ -73,7 +73,7 @@ fn main() {
fetcher.mu = &mtx
fetcher.wg = &wg
fetcher.wg.add(ids.len)
for i := 0; i < NR_THREADS; i++ {
for i := 0; i < nr_threads; i++ {
go fetcher.fetch()
}
fetcher.wg.wait()