Gjsify LogoGjsify Logo

Opaque class for defining and scheduling IO jobs.

record

Hierarchy

  • IOSchedulerJob

Index

Constructors

Properties

name: string

Methods

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

    Parameters

    • func: SourceFunc

      a #GSourceFunc callback that will be called in the original thread

    Returns boolean

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

    Note that if you are passing the user_data from g_io_scheduler_push_job() on to this function you have to ensure that it is not freed before func is called, either by passing %NULL as notify to g_io_scheduler_push_job() or by using refcounting for user_data.

    Parameters

    • func: SourceFunc

      a #GSourceFunc callback that will be called in the original thread

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method