IoSchedulerJob

class IoSchedulerJob(pointer: <Error class: unknown class><<Error class: unknown class>>)

Opaque class for defining and scheduling IO jobs.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Properties

Link copied to clipboard
val gioIOSchedulerJobPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun sendToMainloop(func: <Error class: unknown class>): Boolean

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).

Link copied to clipboard
fun sendToMainloopAsync(func: <Error class: unknown class>)

Used from an I/O job to send a callback to be run asynchronously in the thread that the job was started from. The callback will be run when the main loop is available, but at that time the I/O job might have finished. The return value from the callback is ignored.