mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fmt: replace go with spawn
This commit is contained in:
@@ -54,7 +54,7 @@ fn echo() ! {
|
||||
fn test_udp() {
|
||||
mut l := net.listen_udp(server_addr) or { panic('could not listen_udp: $err') }
|
||||
|
||||
go echo_server(mut l)
|
||||
spawn echo_server(mut l)
|
||||
echo() or { panic('could not echo: $err') }
|
||||
|
||||
l.close() or {}
|
||||
|
||||
Reference in New Issue
Block a user