parse_parallel_with_config

Function parse_parallel_with_config 

Source
pub fn parse_parallel_with_config(
    input: &str,
    config: &Config,
) -> 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 Error if parsing or configuration fails.

§Examples

use fast_yaml_parallel::{parse_parallel_with_config, Config};

let config = Config::new()
    .with_workers(Some(4));

let yaml = "---\nfoo: 1\n---\nbar: 2";
let docs = parse_parallel_with_config(yaml, &config)?;