Web: queue EventLoopProxy::send_event() to microtask

This commit is contained in:
daxpedda
2024-06-12 00:02:26 +02:00
committed by Kirill Chibisov
parent 437747b966
commit b14d5c0c99
3 changed files with 98 additions and 34 deletions

View File

@@ -39,3 +39,19 @@ The migration guide could reference other migration examples in the current
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`.
- Remove `EventLoopExtRunOnDemand::run_on_demand`.
- Remove `EventLoopExtPumpEvents::pump_events`.