-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RedisCoroutinesCommands
calls are locked after calling multi()
#1954
Comments
Paging @sokomishalov |
@fedigiorgio thanks for the report! suspend fun test(connection: StatefulRedisConnection<String, String>) {
val coroutines = connection.coroutines<String, String>()
coroutines.multi { // it as RedisReactiveCommands<K, V>
set("myKey1", "myValue1").subsribe() // won't hang up
set("myKey2", "myValue2").subscribe() // won't hang up
}
} @mp911de how do you think? |
Instead of removing it, I'd vote to deprecate it with a proper note of why transactions aren't a good fit with an imperative coroutine coding style. |
Bug Report
When invoke
multi
method inRedisCoroutinesCommands
all commands callings into its actions are being locked.Current Behavior
Expected behavior/code
Enqueue the next commands callings and continue with the execution flow.
Environment
The text was updated successfully, but these errors were encountered: