Tags: ruffle-rs/ruffle
Tags
build(deps): bump enumset from 1.1.3 to 1.1.4 in the cargo-minor group Bumps the cargo-minor group with 1 update: [enumset](https://github.com/Lymia/enumset). Updates `enumset` from 1.1.3 to 1.1.4 - [Changelog](https://github.com/Lymia/enumset/blob/main/RELEASES.md) - [Commits](Lymia/enumset@v1.1.3...v1.1.4) --- updated-dependencies: - dependency-name: enumset dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-minor ... Signed-off-by: dependabot[bot] <[email protected]>
web: Check for locked 'Player' mutex and reschedule with setTimeout We use 'wasm-bindgen-futures' as our futures executor on web, which in turn uses 'queueMicroTask'. This can result in the browser executing one of our futures while we're still inside our `requestAnimationFrame` callback (in particular, while we still have the `Player` mutex locked). We now detect this condition by attempting the lock the Player mutex inside of our `spawn_local` future. If this fails, we `await` a `setTimeout`-based promise, which ensures that our code runs in a new top-level `setTimeout` javascript 'task' (outside of our `requestAnimationFrame` callback).
PreviousNext