[ Version ( since = "3.16" ) ]
public async bool wait_for_connected (uint32 timeout_seconds, Cancellable? cancellable) throws Error
Asynchronously waits until the this is connected (according to ESource::connection-status
property), but not longer than timeout_seconds
.
The call is finished by wait_for_connected.end from the callback
.
this |
an Client |
timeout_seconds |
a timeout for the wait, in seconds |
cancellable |
a Cancellable; or |
callback |
callback to call when a result is ready |
user_data |
user data for the |