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