mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
ci: fix go->spawn in the examples in vlib/context/README.md too
This commit is contained in:
parent
bf00e9bdb8
commit
27d8f2371d
1 changed files with 2 additions and 2 deletions
|
@ -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'))
|
||||
}
|
||||
```
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue