mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
time: time.wait() => time.sleep()
This commit is contained in:
parent
be4a2e17d3
commit
3a2d696fac
42 changed files with 76 additions and 67 deletions
|
@ -72,7 +72,7 @@ fn (mut s Server) close() {
|
|||
fn (mut s Server) handle_ping() {
|
||||
mut clients_to_remove := []string{}
|
||||
for s.state == .open {
|
||||
time.wait(s.ping_interval * time.second)
|
||||
time.sleep(s.ping_interval * time.second)
|
||||
for i, _ in s.clients {
|
||||
mut c := s.clients[i]
|
||||
if c.client.state == .open {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue