Gio.io_scheduler_push_job

function io_scheduler_push_job(job_func: Gio.IOSchedulerJobFunc, io_priority: Number(gint), cancellable: Gio.Cancellable): void {
    // Gjs wrapper for g_io_scheduler_push_job()
}
  

Schedules the I/O job to run in another thread.

notify will be called on user_data after job_func has returned, regardless whether the job was cancelled or has run to completion.

If cancellable is not null, it can be used to cancel the I/O job by calling Gio.Cancellable.prototype.cancel or by calling Gio.io_scheduler_cancel_all_jobs.

job_func

a Gio.IOSchedulerJobFunc.

io_priority

the [I/O priority][io-priority] of the request.

cancellable

optional Gio.Cancellable object, null to ignore.