pub fn set_max_parallelism(&mut self, parallelism: NonZeroU32) {
        self.parallelism = parallelism;
    }
Sets the degree of parallelism to be used by this generator. A reasonable value can be obtained
using [`Self::default_parallelism()`].
core/node/commitment_generator/src/lib.rs