mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Remove old docs about EventLoop::run
This commit is contained in:
@@ -223,8 +223,6 @@ impl<T> EventLoop<T> {
|
|||||||
///
|
///
|
||||||
/// ## Platform-specific
|
/// ## Platform-specific
|
||||||
///
|
///
|
||||||
/// - **X11 / Wayland:** The program terminates with exit code 1 if the display server
|
|
||||||
/// disconnects.
|
|
||||||
/// - **iOS:** Will never return to the caller and so values not passed to this function will
|
/// - **iOS:** Will never return to the caller and so values not passed to this function will
|
||||||
/// *not* be dropped before the process exits.
|
/// *not* be dropped before the process exits.
|
||||||
/// - **Web:** Will _act_ as if it never returns to the caller by throwing a Javascript exception
|
/// - **Web:** Will _act_ as if it never returns to the caller by throwing a Javascript exception
|
||||||
|
|||||||
@@ -30,8 +30,7 @@
|
|||||||
//!
|
//!
|
||||||
//! You can retrieve events by calling [`EventLoop::run`][event_loop_run]. This function will
|
//! You can retrieve events by calling [`EventLoop::run`][event_loop_run]. This function will
|
||||||
//! dispatch events for every [`Window`] that was created with that particular [`EventLoop`], and
|
//! dispatch events for every [`Window`] that was created with that particular [`EventLoop`], and
|
||||||
//! will run until [`exit()`] is used, at which
|
//! will run until [`exit()`] is used, at which point [`Event`]`::`[`LoopExiting`].
|
||||||
//! point [`Event`]`::`[`LoopExiting`] is emitted and the entire program terminates.
|
|
||||||
//!
|
//!
|
||||||
//! Winit no longer uses a `EventLoop::poll_events() -> impl Iterator<Event>`-based event loop
|
//! Winit no longer uses a `EventLoop::poll_events() -> impl Iterator<Event>`-based event loop
|
||||||
//! model, since that can't be implemented properly on some platforms (e.g web, iOS) and works poorly on
|
//! model, since that can't be implemented properly on some platforms (e.g web, iOS) and works poorly on
|
||||||
|
|||||||
Reference in New Issue
Block a user