mirror of
https://github.com/servo/servo.git
synced 2025-10-16 00:10:23 +01:00
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:
parent
99f24fbd40
commit
193b6d2635
19 changed files with 55 additions and 31 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue