6.20 GPollableSourceFunc

Callback: GPollableSourceFunc

A procedure given for it is called as (procedure pollable-stream) ⇒ %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 pollable-input-stream:create-source and pollable-output-stream:create-source.

pollable-stream

Passed: a <GObject>.

the <GPollableInputStream> or <GPollableOutputStream>

%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.