Hey guys, I am new to the Kotlin community, I am b...
# coroutines
v
Hey guys, I am new to the Kotlin community, I am building a GeoIP webserver using Kotlin 1.1 and trying to use the async features. Right now I am using GeoIP2 (maxmind) database that uses
File
object to read file. My understanding right now is that if a coroutine issues are read/write on such
File
object it will block the thread and prevent other coroutine to schedule on the blocked thread
. To get around the problem I am planning to spin of worker thread pool (4-8 threads). That will be reading data from library that does the blocking call, and coroutines can communicate over some sort of worker queue with these threads.