connect

open fun connect(callback: <Error class: unknown class>): <Error class: unknown class>

Convenience function to connect to the #GCancellable::cancelled signal. Also handles the race condition that may happen if the cancellable is cancelled right before connecting.

Return

The id of the signal handler or 0 if @cancellable has already been cancelled.

Since

2.22

Parameters

callback

The #GCallback to connect.