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

ci: fix go->spawn in the examples in vlib/context/README.md too

This commit is contained in:
Delyan Angelov 2022-11-05 14:02:24 +02:00
parent bf00e9bdb8
commit 27d8f2371d
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -42,7 +42,7 @@ fn main() {
// the internal routine started by gen.
gen := fn (mut ctx context.Context) chan int {
dst := chan int{}
go fn (mut ctx context.Context, dst chan int) {
spawn fn (mut ctx context.Context, dst chan int) {
mut v := 0
ch := ctx.done()
for {
@ -187,4 +187,4 @@ fn main() {
assert value == dump(f(ctx, key))
assert not_found_value == dump(f(ctx, 'color'))
}
```
```