Let compiler auto impl Send
for Task
This commit is contained in:
parent
b8c6008fbc
commit
8db363c44b
1 changed files with 0 additions and 2 deletions
|
@ -32,8 +32,6 @@ mod task_queue {
|
|||
done: JoinNotifier,
|
||||
}
|
||||
|
||||
unsafe impl Send for Task {}
|
||||
|
||||
impl Task {
|
||||
pub(super) fn new(p: Box<dyn FnOnce() + Send>) -> (Task, JoinHandle) {
|
||||
let (done, recv) = wait_notify::new();
|
||||
|
|
Loading…
Add table
Reference in a new issue