[ Version ( since = "3.6" ) ]
public async bool disconnect (bool clean, int io_priority, Cancellable? cancellable = null) throws Error
If a disconnect operation is already in progress when this function is called, its results will be reflected in this disconnect operation.
If any connect operations are in progress when this function is called, they will be cancelled.
When the operation is finished, callback
will be called. You can then call disconnect.end to get
the result of the operation.
this |
a Service |
clean |
whether or not to try to disconnect cleanly |
io_priority |
the I/O priority of the request |
cancellable |
optional Cancellable object, or null |
callback |
a TaskReadyCallback to call when the request is satisfied |
user_data |
data to pass to the callback function |