Merge branch '2343-async-result-docs' into 'main'

giotypes: Document refcounting of source object for GAsyncReadyCallback

Closes #2343

See merge request GNOME/glib!1988
This commit is contained in:
Philip Withnall 2021-08-19 11:38:10 +00:00
commit 51b0cd3ccc

View File

@ -271,6 +271,10 @@ typedef struct _GVolumeMonitor GVolumeMonitor;
* 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.
**/
typedef void (*GAsyncReadyCallback) (GObject *source_object,
GAsyncResult *res,