Rename run_ondemand to run_on_demand
This commit is contained in:
parent
c7cf0cfd83
commit
ee0db52ac4
12 changed files with 25 additions and 24 deletions
|
|
@ -252,10 +252,10 @@ impl<T: 'static> EventLoop<T> {
|
|||
where
|
||||
F: FnMut(Event<T>, &RootELW<T>),
|
||||
{
|
||||
self.run_ondemand(event_handler)
|
||||
self.run_on_demand(event_handler)
|
||||
}
|
||||
|
||||
pub fn run_ondemand<F>(&mut self, mut event_handler: F) -> Result<(), EventLoopError>
|
||||
pub fn run_on_demand<F>(&mut self, mut event_handler: F) -> Result<(), EventLoopError>
|
||||
where
|
||||
F: FnMut(Event<T>, &RootELW<T>),
|
||||
{
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ impl<T> EventLoopRunner<T> {
|
|||
/// outlive the EventLoopRunner) and can lead to undefined behaviour if
|
||||
/// the handler is not cleared before the end of real lifetime.
|
||||
///
|
||||
/// All public APIs that take an event handler (`run`, `run_ondemand`,
|
||||
/// All public APIs that take an event handler (`run`, `run_on_demand`,
|
||||
/// `pump_events`) _must_ pair a call to `set_event_handler` with
|
||||
/// a call to `clear_event_handler` before returning to avoid
|
||||
/// undefined behaviour.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue