F0X
05/08/2023, 9:07 AMContinuationInterceptor
, but also use an existing CoroutineDispatcher
to have all coroutines run on a specific thread. At first I thought I'd just extend CoroutineDispatcher
, delegate everything and override interceptContinuation
, but the interceptor methods are both final there. What's the recommended way of doing this, can I just combine the dispatcher and my interceptor?streetsofboston
05/08/2023, 1:50 PMF0X
05/08/2023, 6:54 PMstreetsofboston
05/08/2023, 7:03 PMclass MyDispatcher(private val dispatcher: CoroutineDispatcher) : ContinuationInterceptor by dispatcher {
override fun interceptContinuation(....) ....
}