Trait brotli::enc::threading::BatchSpawnableLite
source · pub trait BatchSpawnableLite<T: Send + 'static, Alloc: BrotliAlloc + Send + 'static, U: Send + 'static + Sync>where
<Alloc as Allocator<u8>>::AllocatedMemory: Send + 'static,{
type JoinHandle: Joinable<T, BrotliEncoderThreadError>;
type FinalJoinHandle: OwnedRetriever<U>;
fn batch_spawn(
&mut self,
input: &mut Owned<U>,
alloc_per_thread: &mut [SendAlloc<T, Alloc, Self::JoinHandle>],
f: fn(_: usize, _: usize, _: &U, _: Alloc) -> T
) -> Self::FinalJoinHandle;
}