singleFromCoroutine

fun <T> singleFromCoroutine(block: suspend CoroutineScope.() -> T): Single<T>

Launches coroutine and calls the provided block for every subscription. Please note that it uses runBlocking in Kotlin/Native. Please read the README for more information.