https://kotlinlang.org logo
#coroutines
Title
# coroutines
m

mp911de

09/29/2020, 1:55 PM
And we’re not sure which way is the better for the Coroutine API variant:
Copy code
// variant 1: suspendable
val api: RedisClusterSuspendableCommands<String, String> = connection.suspendable()

// variant 2: coroutine
val api: RedisClusterCoroutineCommands<String, String> = connection.coroutine()
t

taer

09/29/2020, 3:12 PM
Personally the variant 1 makes more sense to me.
2 Views