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

Chris Fillmore

01/22/2021, 2:35 PM
Hi everyone, I am doing some work with OpenGL/SurfaceTexture on Android and am considering having a dedicated thread for these operations. I have a reference implementation (written in Java) where this is the approach. Is there a more Kotlin-idiomatic way of doing this? Some alternatives I should consider? I appreciate your thoughts, thanks.
d

Dominaezzz

01/22/2021, 4:39 PM
Tricky. OpenGL might be a bit too strict for coroutines. You could use a custom single threaded dispatcher but I'm not sure if it gives much value.
c

Chris Fillmore

01/23/2021, 6:22 PM
@Dominaezzz thanks for replying, I think you’re right
25 Views