Give tasks useful names. #2891
This commit is contained in:
@@ -726,6 +726,8 @@ fn spawn_raw_newsched(mut opts: TaskOpts, f: ~fn()) {
|
||||
task.death.on_exit = Some(on_exit);
|
||||
}
|
||||
|
||||
task.name = opts.name.take();
|
||||
|
||||
rtdebug!("spawn about to take scheduler");
|
||||
|
||||
let sched = Local::take::<Scheduler>();
|
||||
|
||||
Reference in New Issue
Block a user