Skip to content

Instantly share code, notes, and snippets.

@hsusmita
Created Feb 14, 2018
Embed
What would you like to do?
Create an observer
let signalObserver = Observer<Int, NoError> (
value: { value in
print("Time elapsed = \(value)")
},
completed: { print("completed") },
interrupted: { print("interrupted") })
output.observe(signalObserver)
@Czajnikowski
Copy link

Czajnikowski commented Jul 10, 2019

Signal<Int, Never>.Observer can be used for ReactiveSwift v10

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