Skip to content

Instantly share code, notes, and snippets.

@Eluss
Created January 24, 2016 12:01
Show Gist options
  • Save Eluss/9e564870ffa4f75b7ef9 to your computer and use it in GitHub Desktop.
Save Eluss/9e564870ffa4f75b7ef9 to your computer and use it in GitHub Desktop.
let producer = countToValue(5)
producer.startWithSignal { (observer, disposable) -> () in
observer.observeNext({ (number) -> () in
print(number)
})
observer.observeCompleted({ () -> () in
print("I'm done counting")
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment