https://kotlinlang.org logo
#coroutines
Title
# coroutines
e

enleur

01/26/2018, 12:00 AM
https://gist.github.com/enleur/1b552483c7a540c7d29ea1f9c64f5e06 @elizarov is this the right way to use MDC context with coroutines?
e

elizarov

01/26/2018, 6:49 AM
Yes. Looks correct. Although, I think that implementation is going to be simpler if it extends
CoroutineDispatcher
, instead of directly implementing
ContinuationInterceptor
.
👍 1
e

enleur

01/26/2018, 7:28 AM
Thanks!
4 Views