mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Use ::park() instead of ::sleep()
This commit is contained in:
parent
ae6ca6fb23
commit
199ebda689
2 changed files with 2 additions and 2 deletions
|
|
@ -195,7 +195,7 @@ fn main() {
|
||||||
println!("Server listening on port {}", port);
|
println!("Server listening on port {}", port);
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
thread::sleep(Duration::from_secs(1));
|
thread::park();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
("pack", _) => {
|
("pack", _) => {
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ impl VfsWatcher {
|
||||||
}
|
}
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
thread::sleep(Duration::from_secs(1));
|
thread::park();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue