public static < T > Publisher < T > toPublisher ( Completable completable ) { if ( completable == null ) { throw new NullPointerException ( "completable" ) ; } return new CompletableAsPublisher < T > ( completable ) ; }
Converts an RxJava Completable into a Publisher that emits only onError or onComplete .