Skip to main content

decode_stream

Function decode_stream 

Source
pub async fn decode_stream(
    lines: impl IntoIterator<Item = String>,
    options: Option<DecodeStreamOptions>,
) -> Vec<JsonStreamEvent>
Expand description

Decode TOON lines into a stream of events asynchronously.

ยงPanics

Panics if decoding fails due to malformed input or strict-mode validation errors. Use try_decode_stream for a fallible version that returns Result.