Gio.IOSchedulerJob.prototype.send_to_mainloop

function send_to_mainloop(func: GLib.SourceFunc): Boolean {
    // Gjs wrapper for g_io_scheduler_job_send_to_mainloop()
}
  

Used from an I/O job to send a callback to be run in the thread that the job was started from, waiting for the result (and thus blocking the I/O job).

func

a GLib.SourceFunc callback that will be called in the original thread

Returns

The return value of func