pakoito
04/09/2020, 1:05 PMdnowak
04/09/2020, 1:43 PMdnowak
04/09/2020, 1:46 PMSatyam Agarwal
04/09/2020, 1:52 PMSatyam Agarwal
04/09/2020, 1:53 PMSatyam Agarwal
04/09/2020, 1:54 PMdnowak
04/09/2020, 2:07 PMIO.effect(<http://Dispatchers.IO|Dispatchers.IO> + MDCContext())dnowak
04/09/2020, 2:08 PMSatyam Agarwal
04/09/2020, 2:17 PMarrow-fx-kotlinx-coroutines.
even if you aren’t, I don’t see any reason why it wouldn’t be. But take it with sack (not grain) of saltpakoito
04/09/2020, 3:31 PMpakoito
04/09/2020, 3:31 PMpakoito
04/09/2020, 3:31 PMSatyam Agarwal
04/09/2020, 3:36 PMso it’s an SLF4J property that stores some Thread-local state in some context, so the logger reports the traces and their corresponding threadsYes. That’s what I have understood from the implementation.
pakoito
04/09/2020, 4:03 PMpakoito
04/09/2020, 4:04 PMdnowak
04/09/2020, 10:05 PMdnowak
04/09/2020, 10:08 PMpakoito
04/10/2020, 12:12 AMSchedulers.immediate() . I believe we don’t have it, you have to jump back to a specific scheduler.pakoito
04/10/2020, 12:13 AMpakoito
04/10/2020, 12:15 AMEmptyCoroutineContext . It’ll still trampoline where needed when using suspended and unsafeRunAsync.dnowak
04/10/2020, 1:49 PMsimon.vergauwen
04/14/2020, 8:50 AMimmediate, as well as singlesimon.vergauwen
04/14/2020, 8:51 AMimmediate would just be exposing our trampoline scheduler afaik.pakoito
04/14/2020, 9:42 AMsimon.vergauwen
04/14/2020, 9:43 AMshould stay on the current thread or equivalent, not the one that the execution is at that point🤔
simon.vergauwen
04/14/2020, 9:44 AMIO, right?pakoito
04/14/2020, 9:58 AM// called from "Main"
IO(dispatchers().io()) { 1 } // IO
.continueOn(dispatchers().immediate())
.map { Thread.current().name } // should be "Main"
.suspended()
if it fulfills that then yessimon.vergauwen
04/14/2020, 10:03 AMmain is that immediate() was called there?simon.vergauwen
04/14/2020, 10:03 AMsuspended() was called there?pakoito
04/14/2020, 10:04 AMsimon.vergauwen
04/14/2020, 10:07 AMThreadLocal val.pakoito
04/14/2020, 11:15 AMpakoito
04/14/2020, 11:16 AMsimon.vergauwen
04/14/2020, 11:17 AM