GLib.MainContext.prototype.find_source_by_user_data

function find_source_by_user_data(user_data: void): GLib.Source {
    // Gjs wrapper for g_main_context_find_source_by_user_data()
}
  

Finds a source with the given user data for the callback. If multiple sources exist with the same user data, the first one found will be returned.

user_data

the user_data for the callback.

Returns

the source, if one was found, otherwise null