Eivind
10/17/2022, 11:08 AMBig Chungus
10/17/2022, 11:32 AMEivind
10/17/2022, 11:34 AMstreetsofboston
10/17/2022, 12:10 PMEivind
10/17/2022, 12:35 PMJoffrey
10/17/2022, 12:37 PMrunBlocking
in a way. If the Java interface is asynchronous (for instance with a callback or returning a Future
then it's another story, but I doubt you would have those questions if it were the case.Joffrey
10/17/2022, 12:38 PMrunBlocking
, you can still customize the coroutine context (not the scope), by passing the context as a constructor argument to your Kotlin implementation of the Java interface. Eivind
10/17/2022, 12:42 PMJoffrey
10/17/2022, 12:43 PMEivind
10/17/2022, 12:44 PMJoffrey
10/17/2022, 12:45 PMThreadLocal
for this? or some kind of MDC library?Eivind
10/18/2022, 5:38 AM