6.1 GAsyncReadyCallback

Callback: GAsyncReadyCallback

A procedure given for it is called as (procedure source-object res). If the function that it is given to has no user data for it, it is also passed data, last.

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 (see 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.

source-object

Passed: a <GObject>, or #f.

the object the asynchronous operation was started with.

res

Passed: a <GAsyncResult>.

a <GAsyncResult>.

data

Not passed: it is the user data that guile-gi supplied.

user data passed to the callback.