mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
all: support thread
handles and wait()
for functions returning optionals (#8990)
This commit is contained in:
parent
aed348fb80
commit
f67bff1696
9 changed files with 242 additions and 15 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue