Function tree_sitter::ffi::ts_parser_set_timeout_micros

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

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.