fn with_splits(self, splits: usize) -> SetupIter<Self> {
        SetupIter::new(
            self,
            Setup {
                splits: Some(splits),
                ..Default::default()
            },
        )
    }
/// Sets the number of splits that are processed in parallel.
///
/// # Examples
///
/// ```
/// use asparit::*;
///
/// (0..1_000_000)
///     .into_par_iter()
///     .with_splits(8)
///     .for_each(|_| println!("Thread ID: {:?}", std::thread::current().id()))
///     .exec();
/// ```
Sets the number of splits that are processed in parallel.
Sets the number of splits that are processed in parallel .
fn with_splits(self, splits: usize) -> SetupIter<Self> {
        SetupIter::new(
            self,
            Setup {
                splits: Some(splits),
                ..Default::default()
            },
        )
    }
fn with_splits ( self , splits : usize ) -> SetupIter < Self > { SetupIter :: new ( self , Setup { splits : Some ( splits ) , .. Default :: default ( ) } , ) }
Sets the number of splits that are processed in parallel.
Sets the number of splits that are processed in parallel .
self
splits
usize
self
splits
usize
examples
None