mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-28 07:33:14 -04:00
Make EventLoopProxy Sync
Co-authored-by: daxpedda <daxpedda@gmail.com> Closes: #3448
This commit is contained in:
committed by
Kirill Chibisov
parent
e61a7320a2
commit
31f8b816bd
@@ -253,7 +253,8 @@ impl<T> EventLoop<T> {
|
||||
self.event_loop.run(event_handler)
|
||||
}
|
||||
|
||||
/// Creates an [`EventLoopProxy`] that can be used to dispatch user events to the main event loop.
|
||||
/// Creates an [`EventLoopProxy`] that can be used to dispatch user events
|
||||
/// to the main event loop, possibly from another thread.
|
||||
pub fn create_proxy(&self) -> EventLoopProxy<T> {
|
||||
EventLoopProxy {
|
||||
event_loop_proxy: self.event_loop.create_proxy(),
|
||||
|
||||
Reference in New Issue
Block a user