title: RxJava Return single, execute completable after
body: <p>I'm trying to accomplish the following: Return some data as single, execute a completable after. The following code does not compile due to single.andThen(). The actions need to be executed in this order.</p>
  
  <pre><code>val single = Single.create&lt;String&gt; { it.onSuccess("result") }
  val completable = Completable.create { println("executing cleanup") }
  val together = single.andThen(completable)
  
  together.subscribe(
          { println(it) },
          { println(it) }
  
  )
  </code></pre>