[ Version ( since = "2.59.0" ) ]
public void set_cancellable_for_rendering (Cancellable? cancellable = null)
Sets a cancellable object that can be used to interrupt rendering while the handle is being rendered in another thread.
For example, you can set a cancellable from your main thread, spawn a thread to do the rendering, and interrupt the rendering from the main thread by calling cancel.
If rendering is interrupted, the corresponding call to render_document (or any of the other rendering functions) will return an error with domain `G_IO_ERROR`, and code `G_IO_ERROR_CANCELLED`.
| this |
A [class@Rsvg.Handle]. |
| cancellable |
A [class@Gio.Cancellable] or `NULL`. |