-
-
Save GuilhE/42c45a27d586697789035ec73ad19707 to your computer and use it in GitHub Desktop.
Medium articles - KMM with MVI+FSM
This file contains 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 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