mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
time: time.wait() => time.sleep()
This commit is contained in:
@ -32,7 +32,7 @@ fn (mut app App) sse() vweb.Result {
|
||||
data := '{"time": "$time.now().str()", "random_id": "$rand.ulid()"}'
|
||||
session.send_message(event: 'ping', data: data) or { return app.server_error(501) }
|
||||
println('> sent event: $data')
|
||||
time.wait(1 * time.second)
|
||||
time.sleep(1 * time.second)
|
||||
}
|
||||
return app.server_error(501)
|
||||
}
|
||||
|
Reference in New Issue
Block a user