push


Description:

[ CCode ( cname = "g_io_scheduler_push_job" ) ]
public static void push (owned IOSchedulerJobFunc job_func, int io_priority = DEFAULT, 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 cancel or by calling cancel_all.

Parameters:

job_func

a IOSchedulerJobFunc.

io_priority

the I/O priority of the request.

cancellable

optional Cancellable object, null to ignore.

notify

a DestroyNotify for user_data, or null

user_data

data to pass to job_func