mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Clarify ControlFlow::Poll doc for web (#1725)
Make it clear that ControlFlow::Poll causing events to be sent on `requestAnimationFrame` is an implementation detail which should not be relied on.
This commit is contained in:
parent
3cd6a18048
commit
9d6b9797c0
|
@ -74,9 +74,11 @@ pub enum ControlFlow {
|
||||||
/// When the current loop iteration finishes, immediately begin a new iteration regardless of
|
/// When the current loop iteration finishes, immediately begin a new iteration regardless of
|
||||||
/// whether or not new events are available to process.
|
/// whether or not new events are available to process.
|
||||||
///
|
///
|
||||||
/// For web, events are queued and usually sent when `requestAnimationFrame` fires but sometimes
|
/// ## Platform-specific
|
||||||
/// the events in the queue may be sent before the next `requestAnimationFrame` callback, for
|
/// - **Web:** Events are queued and usually sent when `requestAnimationFrame` fires but sometimes
|
||||||
/// example when the scaling of the page has changed.
|
/// the events in the queue may be sent before the next `requestAnimationFrame` callback, for
|
||||||
|
/// example when the scaling of the page has changed. This should be treated as an implementation
|
||||||
|
/// detail which should not be relied on.
|
||||||
Poll,
|
Poll,
|
||||||
/// When the current loop iteration finishes, suspend the thread until another event arrives.
|
/// When the current loop iteration finishes, suspend the thread until another event arrives.
|
||||||
Wait,
|
Wait,
|
||||||
|
|
Loading…
Reference in a new issue