servo/components/script
bors-servo 910cc23a6e
Auto merge of #21325 - gterzian:crossbeam_integration, r=SimonSapin,jdm
Replace mpsc with crossbeam-channel

Follow up on https://github.com/servo/servo/pull/19515

---

Selecting over multiple channels in `std::sync::mpsc` is not stable and likely never will be:

https://github.com/rust-lang/rust/issues/27800#issuecomment-260136777
> It seems the only thing keeping `mpsc_select` around is Servo.

crossbeam-channel is designed specifically to replace `std::sync::mpsc` and fix many of its shortcomings:
https://github.com/stjepang/rfcs-crossbeam/blob/channel/text/2017-11-09-channel.md

This is to be landed together with https://github.com/servo/ipc-channel/pull/183.

<!-- 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/21325)
<!-- Reviewable:end -->
2018-09-12 13:33:45 -04:00
..
docs
dom Auto merge of #21325 - gterzian:crossbeam_integration, r=SimonSapin,jdm 2018-09-12 13:33:45 -04:00
task_source Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
body.rs Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393 2018-03-28 21:28:30 +02:00
build.rs
Cargo.toml Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
clipboard_provider.rs
CMakeLists.txt build(cmake): detect python binary for specified version 2018-03-13 09:25:06 -07:00
devtools.rs Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393 2018-03-28 21:28:30 +02:00
document_loader.rs implement window.stop, improve aborting document load 2018-07-29 16:42:54 +08:00
fetch.rs introduce "per task source" ignoring of tasks 2018-07-10 13:42:28 +08:00
layout_image.rs implement window.stop, improve aborting document load 2018-07-29 16:42:54 +08:00
lib.rs Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
mem.rs Pass new method in CollectServoSizes for accurate DOM heap use reporting 2018-03-27 20:35:39 -04:00
microtask.rs
network_listener.rs
script_runtime.rs Add the TaskSourceName to CommonScriptMsg::Task 2018-09-04 09:17:11 -04:00
script_thread.rs Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
serviceworker_manager.rs Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
serviceworkerjob.rs
stylesheet_loader.rs introduce "per task source" ignoring of tasks 2018-07-10 13:42:28 +08:00
task.rs
task_queue.rs Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
test.rs Remove unused code for parsing a sizes attribute. 2018-07-01 10:53:42 +02:00
textinput.rs Correct default selectionStart and selectionEnd 2018-02-23 02:37:11 +05:30
timers.rs Updated to mozjs v0.7.1. 2018-05-30 14:44:47 -05:00
unpremultiplytable.rs
webdriver_handlers.rs Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393 2018-03-28 21:28:30 +02:00