Skip to content

Instantly share code, notes, and snippets.

@djds23
Created January 25, 2019 04:39
Show Gist options
  • Save djds23/3cecadcc7b4f62c144b8369ee67dd7fe to your computer and use it in GitHub Desktop.
Save djds23/3cecadcc7b4f62c144b8369ee67dd7fe to your computer and use it in GitHub Desktop.
func simpleCombineStreams(
resource: Observable<Bool>,
buttonTap: Observable<Void>
) -> Observable<Bool> {
return buttonTap
.withLatestFrom(resource)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment