Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
We are potentially adding some new APIs to accepthttps://android-review.googlesource.com/c/platform/frameworks/support/+/2065409 .
CoroutineContext
inIf a user passes a
Job
into theCoroutineContext
, they may unexpectedly prevent cancellation on collection of aPagingData
from the library. while this should not affect future emissions ofPagingData
- we should still investigate whether this has any impact on the common use cases of Paging.In particular - does this make
.collectLatest
a requirement or does it prevent collector from observing new generations entirely?We can mitigate this potential footgun by catching custom
Job
passed to the contexts, but we should first make sure this is actually a problem as it is possible that it could be desirable for user to control this.