IOSchedulerJobFunc


Description:

[ CCode ( instance_pos = 2.9 ) ]
[ Version ( deprecated = true , deprecated_since = "2.36" ) ]
public delegate bool IOSchedulerJobFunc (IOSchedulerJob job, Cancellable? cancellable = null)

Warning: IOSchedulerJobFunc is deprecated since 2.36.

I/O Job function.

Note:

Use [struct@GLib.ThreadPool] or [method@Gio.Task.run_in_thread]

Long-running jobs should periodically check the cancellable to see if they have been cancelled.

Parameters:

job

a IOSchedulerJob.

cancellable

optional Cancellable object, null to ignore.

data

data passed to the callback function

Returns:

true if this function should be called again to complete the job, false if the job is complete (or cancelled)


Namespace: GLib
Package: gio-2.0