Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upClean up task sources and make all tasks cancellable #12404
Conversation
Make tasks a wrapper over runnables
highfive
commented
Jul 12, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jul 12, 2016
|
@bors-servo r+ |
|
|
Clean up task sources and make all tasks cancellable <!-- Please describe your changes on the following line: --> This makes it so each task is a thin wrapper over a runnable and whenever a task is queued, it is automatically wrapped by the window's `runnable_wrapper`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12404) <!-- Reviewable:end -->
|
|
|
All the webstorage tests now time out, suggesting that something went wrong here :) |
|
Woops, |
8f565d8
to
714215c
|
May fix #11703? |
|
Mostly this looks good, and yay for one less intermittent! My only question is about the amount of boxing we're doing, can we replace Reviewed 1 of 9 files at r1, 1 of 3 files at r2, 12 of 13 files at r3, 1 of 1 files at r4, 1 of 1 files at r5. components/script/script_thread.rs, line 177 [r5] (raw file):
Why are we taking a components/script/task_source/mod.rs, line 16 [r5] (raw file):
Why are we taking a Comments from Reviewable |
|
Review status: all files reviewed at latest revision, 2 unresolved discussions. components/script/script_thread.rs, line 177 [r5] (raw file):
|
Implement all Runnable methods on CancellableRunnable to redirect to their inner runnable
2b42b8f
to
523cd73
|
Review status: 5 of 16 files reviewed at latest revision, 2 unresolved discussions. components/script/script_thread.rs, line 177 [r5] (raw file):
|
|
@asajeffrey Because |
523cd73
to
862dc00
|
Reviewed 10 of 11 files at r8, 1 of 1 files at r9. components/script/script_thread.rs, line 177 [r5] (raw file):
|
|
@bors-servo r+ |
|
|
Clean up task sources and make all tasks cancellable <!-- Please describe your changes on the following line: --> This makes it so each task is a thin wrapper over a runnable and whenever a task is queued, it is automatically wrapped by the window's `runnable_wrapper`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11703 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12404) <!-- Reviewable:end -->
|
|
cbrewster commentedJul 12, 2016
•
edited
This makes it so each task is a thin wrapper over a runnable and whenever a task is queued, it is automatically wrapped by the window's
runnable_wrapper../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is