mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +00:00
Run multiple callbacks per step as the documentation suggests
This commit is contained in:
parent
847fd7d800
commit
0ceb4ff4e2
@ -526,7 +526,7 @@ impl Cursive {
|
|||||||
///
|
///
|
||||||
/// [`run(&mut self)`]: #method.run
|
/// [`run(&mut self)`]: #method.run
|
||||||
pub fn step(&mut self) {
|
pub fn step(&mut self) {
|
||||||
if let Ok(cb) = self.cb_source.try_recv() {
|
while let Ok(cb) = self.cb_source.try_recv() {
|
||||||
cb(self);
|
cb(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user