I am currently out of reach from computer.. I will...
# coroutines
a
I am currently out of reach from computer.. I will let you know when I try
👍 1
@louiscad I tried printing
data
. And it prints successfully.
l
@aeruhxi Data prints, but first print call from launch suspend lambda doesn't? If so, then you probably have something else in your program that is blocking all the threads in
DefaultDispatcher
a
I also tried using a different thread pool
Copy code
launch(jedisSubscribeThreadPoolContext) {
            println("************************** async")
            newPostWS[data.userId]?.send(Frame.Text(data.payload))
            println("*************************** complete")
        }
I solved it using a thread
Copy code
Thread() {
        jedisPool.resource.use {
            it.subscribe(listener, "global")
        }
    }.start()
l
A thread... that you never stop?
Which kotlinx.coroutines version are you using exactly?
a
yes, a thread that never stops. I could not find couroutine version. I suppose it uses kotlin version:
Copy code
ext.kotlin_version = '1.2.0'
    ext.ktor_version = '0.9.3'
l
So it's implicitly version 0.23.3. Can you set up a bug reproducer open source project?