newTakeError
fun newTakeError(sourceObject: <Error class: unknown class>? = null, callback: AsyncReadyCallback?, error: <Error class: unknown class>): SimpleAsyncResult
Creates a #GSimpleAsyncResult from an error condition, and takes over the caller's ownership of @error, so the caller does not need to free it anymore.
Return
a #GSimpleAsyncResult
Since
2.28
Parameters
sourceObject
a #GObject, or null
callback
a #GAsyncReadyCallback.
error
a #GError