Repository navigation
Add named Lua timers and fair event dispatch - #8
Merged
Gujiawei-Edinburgh merged 1 commit intoSep 26, 2026
Merged
Conversation
Gujiawei-Edinburgh
approved these changes
Sep 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lua currently has one timer slot, and a script that repeatedly schedules a zero-delay timer can indefinitely delay readable Source input. This change supports anonymous and named one-shot timers and dispatches eligible events by their deadline or first observed Source readiness, with registration order breaking ties.
setTimeout,clearTimeout, andhasTimeout, plusevent.idandevent.eligibleAt.clearTimeoutreplacesclearTimerTask; no alias remains. The unreleased contract keepsspecVersion = "1".Validation on macOS arm64 with the pinned Rust 1.97.1 toolchain:
tools/verify-rust.shpassed, including strict Clippy, generated plugins, real process lifecycle tests, Rust/Java interoperability, Loom, doctests, and rustdoc. Main-library tests: 809 passed, 6 ignored.git diff --checkpassed.Linux and other architectures were not run locally. No long-running performance benchmark was performed.