pub fn parse_parallel_with_config(
input: &str,
config: &ParallelConfig,
) -> Result<Vec<Value>>Expand description
Parse multi-document YAML with custom configuration.
Allows fine-tuning of parallelism parameters for specific workloads and hardware configurations.
§Errors
Returns ParallelError if parsing or configuration fails.
§Examples
use fast_yaml_parallel::{parse_parallel_with_config, ParallelConfig};
let config = ParallelConfig::new()
.with_thread_count(Some(4));
let yaml = "---\nfoo: 1\n---\nbar: 2";
let docs = parse_parallel_with_config(yaml, &config)?;