Skip to content

Instantly share code, notes, and snippets.

@micHar
Last active February 2, 2021 07:21
Show Gist options
  • Select an option

  • Save micHar/4edde324474d758cc5b90852b2e8e89f to your computer and use it in GitHub Desktop.

Select an option

Save micHar/4edde324474d758cc5b90852b2e8e89f to your computer and use it in GitHub Desktop.
createPublisher(wrapper: loadUserUseCase.loadUser(username: "noone special"))
.sink(
receiveCompletion: { completion in
print("Completion: \(completion)")
},
receiveValue: { user in
print("Hello from the Kotlin side \(user?.name)")
}
)
.store(in: &cancellables)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment