Source.removeByFuncsUserData

bool removeByFuncsUserData(glib.types.SourceFuncs funcs, void * userData = null)

Removes a source from the default main loop context given the source functions and user data. If multiple sources exist with the same source functions and user data, only one will be destroyed.

Parameters

funcsThe source_funcs passed to [glib.source.Source.new_]
userDatathe user data for the callback

Returns

true if a source was found and removed.