SimpleAsyncResult.this

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 gio.simple_async_result.SimpleAsyncResult.setCheckCancellable immediately after this function returns.

More...
  1. this(void* ptr, Flag!"Take" take)
  2. this(gobject.object.ObjectWrap sourceObject, gio.types.AsyncReadyCallback callback, void* sourceTag)
    class SimpleAsyncResult

Parameters

sourceObject gobject.object.ObjectWrap

a #GObject, or null.

callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback.

sourceTag void*

the asynchronous function.

Return Value

a #GSimpleAsyncResult.

Detailed Description

Deprecated: Use gio.task.Task.new_ instead.