mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-26 05:38:20 -06:00
.
This commit is contained in:
parent
298c959d73
commit
93f3066ee0
|
@ -13,7 +13,7 @@ struct Task<T> {
|
||||||
fn task_loop<T, R>() {
|
fn task_loop<T, R>() {
|
||||||
let tasks = VecDeque::<Task<T>>::new();
|
let tasks = VecDeque::<Task<T>>::new();
|
||||||
loop {
|
loop {
|
||||||
//todo
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ impl<T: 'static, R: 'static> KubiPool<T, R> {
|
||||||
Self {
|
Self {
|
||||||
callback,
|
callback,
|
||||||
threads: (0..threads).map(|_| {
|
threads: (0..threads).map(|_| {
|
||||||
std::thread::spawn(task_loop::<T, R>)
|
std::thread::spawn(move || task_loop::<T, R>())
|
||||||
}).collect(),
|
}).collect(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue