alias Gio::AsyncReadyCallback

Overview

Type definition for a function that will be called back when an asynchronous operation within GIO has been completed. #GAsyncReadyCallback callbacks from #GTask are guaranteed to be invoked in a later iteration of the [thread-default main context][g-main-context-push-thread-default] where the #GTask was created. All other users of #GAsyncReadyCallback must likewise call it asynchronously in a later iteration of the main context.

The asynchronous operation is guaranteed to have held a reference to @source_object from the time when the *_async() function was called, until after this callback returns.

Alias Definition

GObject::Object?, Gio::AsyncResult -> Nil

Defined in:

lib/gi-crystal/src/auto/gio-2.0/gio.cr