v2 / vlib / v / fmt / tests / thread_in_a_module_keep.vv
17 lines · 15 sloc · 317 bytes · 974737f26bf722c902f9d2a4fe8344c0129f70b2
Raw
1module my_module
2
3import another
4import other as ooo
5
6pub fn do_something() {
7 mut simples := []MyStruct{}
8 //
9 mut threads := []thread MyStruct{}
10 threads.wait()
11 //
12 mut another_threads := []thread another.MyStruct{}
13 another_threads.wait()
14 //
15 mut other_threads := []thread ooo.MyStruct{}
16 other_threads.wait()
17}
18