Rename run_ondemand to run_on_demand

This commit is contained in:
epimeletes
2023-10-03 23:24:42 +02:00
committed by GitHub
parent c7cf0cfd83
commit ee0db52ac4
12 changed files with 25 additions and 24 deletions

View File

@@ -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.