Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
concurrency
/
thread_array_test.v
11
lines
·
9
sloc
·
155 bytes
·
6488041a749df9762348d019c4223908c476f2e2
Raw
1
fn
test_assign_spawn_to_element() {
2
mut
threads := []thread{len: 1}
3
4
threads[0] =
spawn
fn
() {
5
a := 1
6
dump(a)
7
assert
true
8
}()
9
10
threads.wait()
11
}
12