Gio.SimpleAsyncResult.prototype.set_handle_cancellation

function set_handle_cancellation(handle_cancellation: Boolean): void {
    // Gjs wrapper for g_simple_async_result_set_handle_cancellation()
}
  

Sets whether to handle cancellation within the asynchronous operation.

This function has nothing to do with Gio.SimpleAsyncResult.prototype.set_check_cancellable. It only refers to the Gio.Cancellable passed to Gio.SimpleAsyncResult.run_in_thread.

handle_cancellation

a #gboolean.