I’m looking for a code review of sorts, is there a...
# coroutines
d
I’m looking for a code review of sorts, is there a better way to do this? is this dangerous in some way?
Copy code
coroutineScope.launch {
            for (msg in cmdChannel) {
                (executeCommand(msg) as Publisher<B>).collect {
                    coroutineScope.launch {
                        applicationChannel.send(it)
                    }
                }
            }
        }