-
-
Save skydoves/75973e31cccbd699258bd82340992a59 to your computer and use it in GitHub Desktop.
RetainedEffectScope
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class RetainedEffectScope { | |
| public inline fun onRetired(crossinline onRetiredEffect: () -> Unit): RetainedEffectResult = | |
| object : RetainedEffectResult { | |
| override fun retire() { | |
| onRetiredEffect() | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment