Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72191899 authored by Ale Nijamkin's avatar Ale Nijamkin
Browse files

Makes rememberViewModel's coroutine context configurable

There are two ways to control it:
- WithConfiguredRememberViewModels wraps a composable hierarchy and
  makes every rememberViewModel within it use the provided
CoroutineContext
- rememberViewModel takes a coroutineContext parameter. If this is
  passed in, in addition to the one from
WithConfiguredRememberViewModels, the passed-in one wins

Bug: 436547539
Test: unit tests added, also tested manually with the followup CL,
making sure that activated view-models are reporting background thread
names instead of "main" when they get activated
Flag: EXEMPT no production changes in this CL

Change-Id: I1edd2dd261bf1dd3713711f1be242716b6687efe
parent 15148029
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment