title: RxJava2: Alternative to Observable<Void>
body: <p>I have an API which returns only error/success codes, with no body. With RxJava1 I would have used <code>Observable&lt;Void&gt;</code> as the return value for this call. </p>
  
  <p>What can I use for RxJava2? The hint on the Wiki for RxJava2 (<a href="https://github.com/ReactiveX/RxJava/wiki/What&#39;s-different-in-2.0#nulls" rel="noreferrer">link</a>) is not helpful, since I can't change how the API works.</p>
  
  <p>Setup:</p>
  
  <pre><code>compile 'com.squareup.retrofit2:retrofit:2.1.0'
  compile 'com.squareup.retrofit2:converter-gson:2.1.0'
  compile 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
  </code></pre>