A few more stylistic changes

This commit is contained in:
Jonathan Kelley committed 2024-01-04 20:41:48 -08:00
1 parent 4d95bc1374
commit 42e25c407f
6 files changed
+26 -37

No files matched your search

+2 -1
View File
@@ -7,7 +7,8 @@ use tao::{event_loop::EventLoopProxy, window::WindowId};
///
/// This lets the VirtualDom "come up for air" and process events while the main thread is blocked by the WebView.
///
/// All other IO lives in the Tokio runtime,
/// All IO and multithreading lives on other threads. Thanks to tokio's work stealing approach, the main thread can never
/// claim a task while it's blocked by the event loop.
pub fn tao_waker(proxy: EventLoopProxy<UserWindowEvent>, id: WindowId) -> std::task::Waker {
struct DomHandle {
proxy: EventLoopProxy<UserWindowEvent>,