pub fn parse_parallel(input: &str) -> Result<Vec<Value>>Expand description
Parse multi-document YAML stream in parallel.
Automatically detects document boundaries and distributes parsing across multiple threads. Falls back to sequential parsing for single-document inputs.
§Errors
Returns Error::Parse if any document fails to parse.
The error includes the document index for debugging.
§Examples
use fast_yaml_parallel::parse_parallel;
let yaml = "---\nfoo: 1\n---\nbar: 2";
let docs = parse_parallel(yaml)?;
assert_eq!(docs.len(), 2);