romtsn
09/15/2022, 6:42 AMthis
as parameter (as in, this + clockContext
), otherwise it still uses the original coroutineContext
https://github.com/cashapp/molecule/blob/dcfea3afe82d834643345c44b45522eee5b6c64a/[…]ule-runtime/src/commonMain/kotlin/app/cash/molecule/molecule.ktTrevor Stone
09/15/2022, 2:40 PMwith(this + clockContext)
creating a new this
in the scope which is now set to this + clockContext
. So coroutineContext is really (this + clockContext).coroutineContext
indirectly or am I misunderstandingromtsn
09/15/2022, 2:46 PMthis + clockContext
returns a CoroutineContext
and not a CoroutineScope