johnny
07/03/2017, 12:40 PMsuspend fun get(): String {
return withTimeout<String>(90, TimeUnit.SECONDS){
async(CommonPool){
repeat(9000) {
if ((System.currentTimeMillis() - sometime) / 1000 > 60){
return@async someString
}
delay(10L)
}
""
}.await()
}
}