29

How to implement an Object-Pool with an Actor in Kotlin

 5 years ago
source link: https://medium.freecodecamp.org/how-to-implement-an-object-pool-with-an-actor-in-kotlin-ed06d3ba6257?gi=3dc41051be52
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
We use object pool in jasync-sql to manage connections to the database. In this post, I will share how it is done in a performant, lock-free manner using Kotlin coroutines with an Actor. An object…

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK