Add 1ms delay

This commit is contained in:
Dheepak Krishnamurthy 2021-03-31 00:33:47 -06:00
parent 558c176862
commit e53b8af73b

View file

@ -123,6 +123,8 @@ impl Events {
},
};
tx.send(Event::Input(key)).await.unwrap();
task::sleep(Duration::from_millis(1)).await;
task::yield_now().await;
};
}
}