In my attempt to make the streamExtractor lazily loaded, I caused a deadlock. I have fixed the deadlock and this fixed version is at v0.2.7.
The fix was pretty simple, it was to not use CoroutineStart.Lazy because a lazy coroutine may never run, meaning the parent coroutineScope will hang forever.
I also switched the backend driver to sqlx4k as it provides a connection pool but more importantly makes the suspend code flow cleaner.
I wont switch to Exposed (the official SQL driver) because it doesn’t have the same parallel capabilities as sql4k.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.