pub async fn to_xml_async(
doc: &Document,
config: &ToXmlConfig,
) -> Result<String, String>Expand description
Convert HEDL to XML string asynchronously (runs on tokio threadpool)
This is useful for CPU-bound conversion that shouldn’t block the async runtime.
§Examples
use hedl_xml::async_api::to_xml_async;
use hedl_xml::ToXmlConfig;
use hedl_core::Document;
let doc = Document::new((2, 0));
let config = ToXmlConfig::default();
let xml = to_xml_async(&doc, &config).await?;