I am trying to authorize in two services in parallel, but each of them has two steps:
The first service
1) Log in account if the user exist (else create account)
2) Create account if the user doesn't
Maybe<String> login()
Maybe<String> create()
The second service has the same steps.
Maybe<Result> login2()
Maybe<Result> create2()
I know that i can use ZIP operator for parallel requests, but i can't understand how to do all this scheme. What is the right way? I am using RxJava2 + Retrofit2.