ioSchedulerPushJob

fnvoid ioSchedulerPushJob(gio.types.IOSchedulerJobFunc jobFunc, int ioPriority, gio.cancellable.Cancellable cancellable = null)

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.Cancellable.cancel] or by calling [gio.global.ioSchedulerCancelAllJobs].

Parameters

jobFunca #GIOSchedulerJobFunc.
ioPrioritythe [I/O priority][io-priority] of the request.
cancellableoptional #GCancellable object, null to ignore.

Deprecated

use #GThreadPool or [gio.task.Task.runInThread]