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

all: support thread handles and wait() for functions returning optionals (#8990)

This commit is contained in:
Uwe Krüger
2021-02-27 09:16:55 +01:00
committed by GitHub
parent aed348fb80
commit f67bff1696
9 changed files with 242 additions and 15 deletions

View File

@ -49,6 +49,6 @@ fn start_client() ?&websocket.Client {
ws.connect() or { println(term.red('error on connect: $err')) }
go ws.listen() or { println(term.red('error on listen $err')) }
go ws.listen() // or { println(term.red('error on listen $err')) }
return ws
}