Add interrupting the events loop
This commit is contained in:
parent
e7d43174e7
commit
0242daa242
3 changed files with 17 additions and 1 deletions
|
|
@ -127,6 +127,11 @@ impl EventsLoop {
|
|||
{
|
||||
self.events_loop.run_forever(callback)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn interrupt(&self) {
|
||||
self.events_loop.interrupt()
|
||||
}
|
||||
}
|
||||
|
||||
/// Object that allows you to build windows.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue