diff --git a/core/src/main/java/gatt/GattCallback.kt b/core/src/main/java/gatt/GattCallback.kt index 3aff624..fa4174b 100644 --- a/core/src/main/java/gatt/GattCallback.kt +++ b/core/src/main/java/gatt/GattCallback.kt @@ -13,7 +13,6 @@ import android.bluetooth.BluetoothProfile.STATE_DISCONNECTING import com.juul.able.Able import java.util.concurrent.atomic.AtomicBoolean import kotlinx.coroutines.ExecutorCoroutineDispatcher -import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.channels.BroadcastChannel import kotlinx.coroutines.channels.Channel import kotlinx.coroutines.channels.Channel.Factory.BUFFERED @@ -24,12 +23,8 @@ internal class GattCallback( private val dispatcher: ExecutorCoroutineDispatcher ) : BluetoothGattCallback() { - @ExperimentalCoroutinesApi val onConnectionStateChange = BroadcastChannel(CONFLATED) - - @ExperimentalCoroutinesApi val onCharacteristicChanged = BroadcastChannel(BUFFERED) - val onResponse = Channel(CONFLATED) private val isClosed = AtomicBoolean()