Function clingo_sys::clingo_solve_handle_cancel [] [src]

pub unsafe extern "C" fn clingo_solve_handle_cancel(
    handle: *mut clingo_solve_handle_t
) -> bool

Stop the running search and block until done.

Parameters:

  • handle - the target

Returns whether the call was successful; might set one of the following error codes:

  • ::clingo_error_bad_alloc
  • ::clingo_error_runtime if solving fails