Gjsify LogoGjsify Logo

Hierarchy

  • TaskThreadFunc

Callable

  • The prototype for a task function to be run in a thread via g_task_run_in_thread() or g_task_run_in_thread_sync().

    If the return-on-cancel flag is set on task, and cancellable gets cancelled, then the #GTask will be completed immediately (as though g_task_return_error_if_cancelled() had been called), without waiting for the task function to complete. However, the task function will continue running in its thread in the background. The function therefore needs to be careful about how it uses externally-visible state in this case. See g_task_set_return_on_cancel() for more details.

    Other than in that case, task will be completed when the #GTaskThreadFunc returns, not when it calls a g_task_return_ function.

    Parameters

    • task: Gio.Task

      the #GTask

    • sourceObject: GObject.Object

      task's source object

    • taskData: object

      task's task data

    • cancellable: Gio.Cancellable

      task's #GCancellable, or %NULL

    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