https://kotlinlang.org logo
s

semoro

03/08/2017, 5:50 PM
As i can understand, you need something like
Copy code
fun send(): Int = runBlocking(YourAsyncCoroutineContext) {
//your async code
return yourInt
}