6.7 GCancellableSourceFunc

Callback: GCancellableSourceFunc

A procedure given for it is called as (procedure cancellable) ⇒ %return. If the function that it is given to has no user data for it, it is also passed data, last.

This is the function type of the callback used for the <GSource> returned by cancellable:source-new.

cancellable

Passed: a <GCancellable>, or #f.

the <GCancellable>

%return

Returned: a boolean.

it should return #f if the source should be removed.

data

Not passed: it is the user data that guile-gi supplied.

data passed in by the user.