Skip to content

Conversation

@mrobinson
Copy link
Member

The JoinHandle was added as a newer return value from this
constructor. Both return values accomplish more or less the same thing.
The difference is that the Sender return value is triggered right
before the thread ends while the JoinHandle is triggered after thread
completion. One was used in multiprocess mode and one in single process
mode. In any case, the JoinHandle works fine for both cases.

Testing: Multiprocess isn't tested currently, but I confirmed that the
ScripThread shut down properly in multiprocess mode with this change.

The `JoinHandle` was added as a newer return value from this
constructor. Both return values accomplish more or less the same thing.
The difference is that the `Sender` return value is triggered right
before the thread ends while the `JoinHandle` is triggered after thread
completion. One was used in multiprocess mode and one in single process
mode. In any case, the `JoinHandle` works fine for both cases.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
@mrobinson mrobinson requested a review from gterzian as a code owner November 11, 2025 22:18
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 11, 2025
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Nov 12, 2025
@mukilan mukilan added this pull request to the merge queue Nov 12, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 12, 2025
Merged via the queue into servo:main with commit 65deada Nov 12, 2025
35 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants