Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

Update to WindowManager alpha07 to use WindowInfoRepository#254

Merged
pfmaggi merged 2 commits intoandroid:mainfrom
pfmaggi:pfm/alpha07
Jun 16, 2021
Merged

Update to WindowManager alpha07 to use WindowInfoRepository#254
pfmaggi merged 2 commits intoandroid:mainfrom
pfmaggi:pfm/alpha07

Conversation

@pfmaggi
Copy link
Contributor

@pfmaggi pfmaggi commented Jun 15, 2021

Update to WindowManager alpha07 converting from WindowManager's callback to WindowInfoRepository's Flows.

@pfmaggi pfmaggi requested review from chrisbanes and kford55 June 15, 2021 16:58
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.withContext

fun <T> Flow<T>.throttleFirst(waitForMillis: Long): Flow<T> = flow {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure on this function. @manuelvicnt

@pfmaggi pfmaggi merged commit 95c08ac into android:main Jun 16, 2021
@pfmaggi pfmaggi deleted the pfm/alpha07 branch June 16, 2021 09:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants