disconnect_device_async


Description:

[ Version ( since = "0.32" ) ]
public async bool disconnect_device_async (UsbDevice device, Cancellable? cancellable) throws Error

Asynchronously disconnects the device.

When completed, callback will be called. Then it is possible to call disconnect_device_async.end to get the result of the operation.

Parameters:

this

the UsbDeviceManager manager.

device

a connected UsbDevice to disconnect.

cancellable

optional Cancellable object, null to ignore.

callback

a TaskReadyCallback to call when the request is satisfied.

user_data

the data to pass to callback.