takeError

open fun takeError(error: <Error class: unknown class>)(source)

⚠️ Deprecated ⚠️

This is deprecated since version 2.46.

Use #GTask and g_task_return_error() instead.

---

Sets the result from @error, and takes over the caller's ownership of @error, so the caller does not need to free it any more.

Since

2.28

Parameters

error

a #GError