Is the best way (more like first go-to way) to imp...
# coroutines
b
Is the best way (more like first go-to way) to implement a non-suspending interface with suspending functionality to just wrap the implementation with
runBlocking
? (This is what I suspect since the non-coroutine variant would be blocking normally) ie
Copy code
interface A {
    @Throws(Throwable::class)
    fun foo()
}

class RealA : A {
    override fun foo() = runBlocking {
        launch { ... }.join()
        launch { ... }.join()
    }
}