We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc27a56 commit 8b3d867Copy full SHA for 8b3d867
node-graph/graphene-cli/src/main.rs
@@ -111,7 +111,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
111
std::thread::spawn(move || {
112
loop {
113
std::thread::sleep(std::time::Duration::from_nanos(10));
114
- device.poll(wgpu::Maintain::Poll);
+ device.poll(wgpu::PollType::Poll).unwrap();
115
}
116
});
117
let executor = create_executor(proto_graph)?;
@@ -123,7 +123,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
123
println!("{:?}", result);
124
break;
125
126
- std::thread::sleep(std::time::Duration::from_millis(16));
+ tokio::time::sleep(std::time::Duration::from_millis(16)).await;
127
128
129
0 commit comments