mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
time: consolidate the different sleep functions into time.wait(Duration) (#8853)
This commit is contained in:
@@ -13,6 +13,6 @@ fn print_message() {
|
||||
fn main() {
|
||||
for {
|
||||
print_message()
|
||||
time.sleep_ms(500)
|
||||
time.wait(500 * time.millisecond)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user