SourceFunc

Specifies the type of function passed to glib.global.timeoutAdd, glib.global.timeoutAddFull, glib.global.idleAdd, and glib.global.idleAddFull.

When calling glib.source.Source.setCallback, you may need to cast a function of a different type to this type. Use G_SOURCE_FUNC() to avoid warnings about incompatible function types.

alias SourceFunc = bool delegate
()

Return Value

false if the source should be removed. G_SOURCE_CONTINUE and G_SOURCE_REMOVE are more memorable names for the return value.