@@ -8,17 +8,17 @@ import net.http
8
8
9
9
fn foo (a int ) {
10
10
for {
11
- // println('hello from foo()') // a=${a}')
12
- C.printf (c 'hello from foo() a=%d \n ' , a)
11
+ println ('1hello from foo() a=${a} ' )
12
+ // C.printf(c'hello from foo() a=%d\n', a)
13
13
coroutines.sleep (1 * time.second)
14
14
}
15
15
}
16
16
17
17
fn foo2 (a int ) {
18
18
mut i := 0
19
19
for {
20
- // println('hello from foo2()') // a=${a}')
21
- C.printf (c 'hello from foo2() a=%d \n ' , a)
20
+ println ('hello from foo2() a=${a} ' )
21
+ // C.printf(c'hello from foo2() a=%d\n', a)
22
22
coroutines.sleep (2 * time.second)
23
23
i++
24
24
// resp := http.get('https://vlang.io/utc_now') or { panic(err) }
@@ -32,16 +32,16 @@ fn foo2(a int) {
32
32
33
33
fn foo3 (a int ) {
34
34
for {
35
- // println('hello from foo3()') // a=${a}')
36
- C.printf (c 'hello from foo3() a=%d \n ' , a)
35
+ println ('hello from foo3() a=${a} ' )
36
+ // C.printf(c'hello from foo3() a=%d\n', a)
37
37
coroutines.sleep (3 * time.second)
38
38
}
39
39
}
40
40
41
41
fn foo4 (a int ) {
42
42
for {
43
- // println('hello from foo4()') // a=${a}')
44
- C.printf (c 'hello from foo4() a=%d \n ' , a)
43
+ println ('hello from foo4() a=${a} ' )
44
+ // C.printf(c'hello from foo4() a=%d\n', a)
45
45
coroutines.sleep (3 * time.second)
46
46
}
47
47
}
0 commit comments