Function ts_parser_set_timeout_micros

Source
pub unsafe extern "C" fn ts_parser_set_timeout_micros(
    self_: *mut TSParser,
    timeout_micros: u64,
)
Expand description

@deprecated use ts_parser_parse_with_options and pass in a callback instead, this will be removed in 0.26.

Set the maximum duration in microseconds that parsing should be allowed to take before halting.

If parsing takes longer than this, it will halt early, returning NULL. See ts_parser_parse for more information.