mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Remove the unused native argument from spawn_named_with_send_on_failure.
This commit is contained in:
parent
76b0e2d3c7
commit
c4e44b568a
4 changed files with 4 additions and 5 deletions
|
@ -224,7 +224,7 @@ impl<C> PaintTask<C> where C: PaintListener + Send {
|
|||
|
||||
debug!("paint_task: shutdown_chan send");
|
||||
shutdown_chan.send(());
|
||||
}, ConstellationMsg::Failure(failure_msg), c, true);
|
||||
}, ConstellationMsg::Failure(failure_msg), c);
|
||||
}
|
||||
|
||||
fn start(&mut self) {
|
||||
|
|
|
@ -202,7 +202,7 @@ impl LayoutTaskFactory for LayoutTask {
|
|||
layout.start();
|
||||
}
|
||||
shutdown_chan.send(());
|
||||
}, ConstellationMsg::Failure(failure_msg), con_chan, false);
|
||||
}, ConstellationMsg::Failure(failure_msg), con_chan);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -314,7 +314,7 @@ impl ScriptTaskFactory for ScriptTask {
|
|||
|
||||
// This must always be the very last operation performed before the task completes
|
||||
failsafe.neuter();
|
||||
}, ConstellationMsg::Failure(failure_msg), const_chan, false);
|
||||
}, ConstellationMsg::Failure(failure_msg), const_chan);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -25,8 +25,7 @@ pub fn spawn_named_with_send_on_failure<T: Send>(name: &'static str,
|
|||
state: task_state::TaskState,
|
||||
f: proc(): Send,
|
||||
msg: T,
|
||||
dest: Sender<T>,
|
||||
_native: bool) {
|
||||
dest: Sender<T>) {
|
||||
let future_result = TaskBuilder::new().named(name).try_future(proc() {
|
||||
task_state::initialize(state);
|
||||
rtinstrument::instrument(f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue