Skip to content

Instantly share code, notes, and snippets.

@marcin-adamczewski
Last active February 13, 2016 20:28
Show Gist options
  • Save marcin-adamczewski/1868813eb7b390d04789 to your computer and use it in GitHub Desktop.
Save marcin-adamczewski/1868813eb7b390d04789 to your computer and use it in GitHub Desktop.
final Observable<LoginRequest> lastCredentialsObservable = Observable.combineLatest(
emailSubject,
passwordSubject,
new Func2<String, String, LoginRequest>() {
@Override
public LoginRequest call(String email, String password) {
return new LoginRequest(email, password);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment