consumeTo
open fun <T> ReceiveChannel<T>.consumeTo(scope: CoroutineScope, notification: LocalCharacteristic.DSL.NotificationDSL<T>.() -> Unit)
Consumes a ReceiveChannel of T and notifies any subscribed com.splendo.kaluga.bluetooth.ConnectedDevice of any changes. Results in a call to notifiable that may only be called once
Parameters
scope
the CoroutineScope to use to collect the Flow
notification
the NotificationDSL to use to set up notification
Type Parameters
T
the type of the data being collected