GObject.source_set_closure

function source_set_closure(source: GLib.Source, closure: Function): void {
    // Gjs wrapper for g_source_set_closure()
}
  

Set the callback for a source as a GObject.Closure.

If the source is not one of the standard GLib types, the @closure_callback and @closure_marshal fields of the GLib.SourceFuncs structure must have been filled in with pointers to appropriate functions.

source

the source

closure

a GObject.Closure