mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
gsocketaddressenumerator: Make it an error to call next_async before finish
It logically doesn't make sense to repeatedly call next_async() before the previous one has finished.
This commit is contained in:
committed by
Patrick Griffis
parent
8b9e88937b
commit
4c472f8e3f
@@ -120,6 +120,8 @@ g_socket_address_enumerator_real_next_async (GSocketAddressEnumerator *enumerato
|
||||
* Asynchronously retrieves the next #GSocketAddress from @enumerator
|
||||
* and then calls @callback, which must call
|
||||
* g_socket_address_enumerator_next_finish() to get the result.
|
||||
*
|
||||
* It is an error to call this multiple times before the previous callback has finished.
|
||||
*/
|
||||
void
|
||||
g_socket_address_enumerator_next_async (GSocketAddressEnumerator *enumerator,
|
||||
|
Reference in New Issue
Block a user