pub trait BatchSpawnableLite<ReturnValue, ExtraInput, Alloc, U>where
ReturnValue: 'static + Send,
ExtraInput: 'static + Send,
Alloc: 'static + BrotliAlloc + Send,
U: 'static + Send + Sync,
<Alloc as Allocator<u8>>::AllocatedMemory: 'static + Send,{
type JoinHandle: Joinable<ReturnValue, BrotliEncoderThreadError>;
type FinalJoinHandle: OwnedRetriever<U>;
fn make_spawner(&mut self, input: &mut Owned<U>) -> Self::FinalJoinHandle;
fn spawn(
&mut self,
handle: &mut Self::FinalJoinHandle,
alloc_per_thread: &mut SendAlloc<ReturnValue, ExtraInput, Alloc, Self::JoinHandle>,
index: usize,
num_threads: usize,
f: fn(_: ExtraInput, _: usize, _: usize, _: &U, _: Alloc) -> ReturnValue
);
}