<@U9KTWSDRA> You can create coroutine dispatcher f...
# coroutines
g
@Chih You can create coroutine dispatcher from any thread pool executor, there is an extension function for that: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/java.util.concurrent.-executor/as-coroutine-dispatcher.html Also you can create CoroutineDispatcher of fixed size directly using functions
newSingleThreadContext
and
newFixedThreadPoolContext
Also coroutine context is not only dispatcher (context type that controls execution strategy)
👍 1
c
Thanks a lot Andrey!