SimpleAsyncResult
constructor(sourceObject: <Error class: unknown class>? = null, callback: AsyncReadyCallback?, sourceTag: <Error class: unknown class>? = null)
Creates a #GSimpleAsyncResult.
The common convention is to create the #GSimpleAsyncResult in the function that starts the asynchronous operation and use that same function as the @source_tag.
If your operation supports cancellation with #GCancellable (which it probably should) then you should provide the user's cancellable to g_simple_async_result_set_check_cancellable() immediately after this function returns.
Return
a #GSimpleAsyncResult.
Parameters
sourceObject
a #GObject, or null.
callback
a #GAsyncReadyCallback.
sourceTag
the asynchronous function.
constructor(sourceObject: <Error class: unknown class>? = null, callback: AsyncReadyCallback?, error: <Error class: unknown class>)
Creates a #GSimpleAsyncResult from an error condition.
Return
a #GSimpleAsyncResult.
Parameters
sourceObject
a #GObject, or null.
callback
a #GAsyncReadyCallback.
error
a #GError
constructor(gioSimpleAsyncResultPointer: <Error class: unknown class><<Error class: unknown class>>)