Function tree_sitter::ffi::ts_query_cursor_set_timeout_micros
source · pub unsafe extern "C" fn ts_query_cursor_set_timeout_micros(
self_: *mut TSQueryCursor,
timeout_micros: u64
)
Expand description
Set the maximum duration in microseconds that query execution should be allowed to take before halting.
If query execution takes longer than this, it will halt early, returning NULL.
See ts_query_cursor_next_match
or ts_query_cursor_next_capture
for more information.