Web: queue EventLoopProxy::send_event() to microtask

This commit is contained in:
daxpedda
2024-06-12 00:02:26 +02:00
committed by GitHub
parent 9a1ef49dc3
commit 9522670081
3 changed files with 92 additions and 34 deletions

View File

@@ -40,6 +40,16 @@ changelog entry.
## Unreleased
### Changed
- On Web, let events wake up event loop immediately when using
`ControlFlow::Poll`.
### Fixed
- On Web, fix `EventLoopProxy::send_event()` triggering event loop immediately
when not called from inside the event loop. Now queues a microtask instead.
### Removed
- Remove `EventLoop::run`.