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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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`.