-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
nvim-oxi/tests/src/libuv/timer_handle.rs
Lines 20 to 30 in b1278b1
| // TODO: how do sleep without blocking the main thread? | |
| // sleep(timeout / 2); | |
| // | |
| // assert_eq!(rx.try_recv().unwrap(), ()); | |
| // | |
| // sleep(timeout / 2); | |
| // | |
| // for _ in 0..10 { | |
| // assert_eq!(rx.try_recv().unwrap(), ()); | |
| // assert_eq!(rx.try_recv().unwrap_err(), mpsc::TryRecvError::Empty); |
This worked for me:
api::command("sleep 2")?;Metadata
Metadata
Assignees
Labels
No labels