gasyncresult: document that NULL GAsyncReadyCallback is allowed

https://bugzilla.gnome.org/show_bug.cgi?id=653484
This commit is contained in:
Dan Winship 2011-06-29 08:29:16 -04:00
parent 2456db2c00
commit 2080bb1dc0

View File

@ -51,9 +51,11 @@
* "enumerate children" operation). If the result or error status of the
* operation is not needed, there is no need to call the "_finish()"
* function; GIO will take care of cleaning up the result and error
* information after the #GAsyncReadyCallback returns. Applications may
* also take a reference to the #GAsyncResult and call "_finish()"
* later; however, the "_finish()" function may be called at most once.
* information after the #GAsyncReadyCallback returns. You can pass
* %NULL for the #GAsyncReadyCallback if you don't need to take any
* action at all after the operation completes. Applications may also
* take a reference to the #GAsyncResult and call "_finish()" later;
* however, the "_finish()" function may be called at most once.
*
* Example of a typical asynchronous operation flow:
* |[