Covert lambda result to flow
Advertisements I have the intention of converting the structure I am currently using to flow. It may sound silly or irrelevant to you. Let me explain to you the structure: I have an object named BleDataSource. For example, it has a function like below. fun performConnect(device: BluetoothDevice, result: ((Resource<BleOperationResult>) -> Unit)) { enqueueOperation(Connect(device, result)) }… Read More Covert lambda result to flow