SourceFunc

typealias SourceFunc = () -> Boolean

Specifies the type of function passed to func@GLib.timeout_add, func@GLib.timeout_add_full, func@GLib.idle_add, and func@GLib.idle_add_full.

When calling method@GLib.Source.set_callback, you may need to cast a function of a different type to this type. Use func@GLib.SOURCE_FUNC to avoid warnings about incompatible function types.