GLib.Source.prototype.set_can_recurse

function set_can_recurse(can_recurse: Boolean): void {
    // Gjs wrapper for g_source_set_can_recurse()
}
  

Sets whether a source can be called recursively. If can_recurse is true, then while the source is being dispatched then this source will be processed normally. Otherwise, all processing of this source is blocked until the dispatch function returns.

can_recurse

whether recursion is allowed for this source