add names for all servo spawned tasks

* add servo_util::task::{spawn_named,spawn_with_named} functions

* add name param for spawn_listener and spawn_conversation functions

this should resolve #1169
This commit is contained in:
zmike 2014-01-03 15:43:11 -05:00 committed by Mike Blumenkrantz
parent 99f24fbd40
commit 193b6d2635
19 changed files with 55 additions and 31 deletions

View file

@ -10,10 +10,11 @@ use http::client::RequestWriter;
use http::method::Get;
use http::headers::HeaderEnum;
use std::io::Reader;
use servo_util::task::spawn_named;
pub fn factory() -> LoaderTask {
let f: LoaderTask = proc(url, start_chan) {
spawn(proc() load(url, start_chan))
spawn_named("http_loader", proc() load(url, start_chan))
};
f
}