Skip to content

Instantly share code, notes, and snippets.

@tunjid
Created January 7, 2022 11:56
Show Gist options
  • Save tunjid/6a7f2f9861ffaf77da4b0abb87e2443d to your computer and use it in GitHub Desktop.
Save tunjid/6a7f2f9861ffaf77da4b0abb87e2443d to your computer and use it in GitHub Desktop.
@Composable
fun SomePresenter(events: Flow<EventType>): ModelType {
// ...
}
val models: StateFlow<ModelType> = scope.launchMolecule {
SomePresenter(events)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment