diff --git a/gap_darwin.go b/gap_darwin.go index ae6c8fb..c062da0 100644 --- a/gap_darwin.go +++ b/gap_darwin.go @@ -128,7 +128,8 @@ func (a *Adapter) Connect(address Addresser, params ConnectionParams) (*Device, } } -// Disconnect from the BLE device. +// Disconnect from the BLE device. This method is non-blocking and does not +// wait until the connection is fully gone. func (d *Device) Disconnect() error { d.cm.CancelConnect(d.prph) return nil diff --git a/gap_linux.go b/gap_linux.go index e135b4a..9d3fd14 100644 --- a/gap_linux.go +++ b/gap_linux.go @@ -267,7 +267,8 @@ func (a *Adapter) Connect(address Addresser, params ConnectionParams) (*Device, }, nil } -// Disconnect from the BLE device. +// Disconnect from the BLE device. This method is non-blocking and does not +// wait until the connection is fully gone. func (d *Device) Disconnect() error { return d.device.Disconnect() }