I see. But inference stuff right? BTW, the good s...
# coroutines
d
I see. But inference stuff right? BTW, the good stuff about vx function is that now I can use vertex calls inline easily:
Copy code
//suspend fun RedisKey.zrevrange(start: Long, stop: Long) = awaitAsync {
//	val result = await(Promise<JsonArray> {
//		client.zrevrange(key, start, stop, RangeOptions.WITHSCORES, toVertxHandler())
//	})
//	(0 until result.size() / 2).map { result.getString(it * 2 + 0) to result.getString(it * 2 + 1).toDouble() }
//}

suspend fun RedisKey.zrevrange(start: Long, stop: Long) = awaitAsync {
	val result: JsonArray = vx { client.zrevrange(key, start, stop, RangeOptions.WITHSCORES, it) }
	(0 until result.size() / 2).map { result.getString(it * 2 + 0) to result.getString(it * 2 + 1).toDouble() }
}