Rename Task to TaskBox

This commit is contained in:
Anthony Ramine 2017-09-20 09:59:52 +02:00
parent f088b708c9
commit 52527d6f9d
19 changed files with 71 additions and 69 deletions

View file

@ -28,7 +28,7 @@ use std::cell::Cell;
use std::sync::{Arc, Mutex};
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::mpsc::{Sender, channel};
use task::Task;
use task::TaskBox;
pub type TrustedWorkerAddress = Trusted<Worker>;
@ -175,9 +175,9 @@ impl WorkerMethods for Worker {
event_handler!(error, GetOnerror, SetOnerror);
}
impl Task for SimpleWorkerErrorHandler<Worker> {
impl TaskBox for SimpleWorkerErrorHandler<Worker> {
#[allow(unrooted_must_root)]
fn run(self: Box<Self>) {
fn run_box(self: Box<Self>) {
let this = *self;
Worker::dispatch_simple_error(this.addr);
}