Skip to content

Execute UseCase with context-param#178

Open
RudolfHladik wants to merge 6 commits into6.xfrom
feature/6.x-context-params
Open

Execute UseCase with context-param#178
RudolfHladik wants to merge 6 commits into6.xfrom
feature/6.x-context-params

Conversation

@RudolfHladik
Copy link
Copy Markdown
Contributor

No description provided.

import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.flow.onStart

context(coroutineScopeOwner: CoroutineScopeOwner)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This change effectively requires users to enable the experimental -Xcontext-parameters compiler flag. Would it be possible to provide an alternative for users who prefer not to opt into this experimental feature just yet?

If I understand correctly, this feature enables us to implement the lifecycle-hook-related execution methods proposed in this PR. However, I don't see those implemented here — and I believe they should be included in Arkitekt for this feature to provide meaningful value (for both Essenty lifecycle and Android Lifecycle)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants