Skip to content

Instantly share code, notes, and snippets.

@GuilhE
Created April 18, 2022 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GuilhE/42c45a27d586697789035ec73ad19707 to your computer and use it in GitHub Desktop.
Save GuilhE/42c45a27d586697789035ec73ad19707 to your computer and use it in GitHub Desktop.
Medium articles - KMM with MVI+FSM
public extension Kotlinx_coroutines_coreFlow {
func asPublisher<T: AnyObject>() -> AnyPublisher<T, Never> {
(FlowPublisher(flow: self) as FlowPublisher<T>).eraseToAnyPublisher()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment