public static Completable toCompletable ( Publisher < ? > publisher ) { if ( publisher == null ) { throw new NullPointerException ( "publisher" ) ; } return Completable . create ( new PublisherAsCompletable ( publisher ) ) ; }
Converst a Publisher into a Completable by ignoring all onNext values and emitting onError or onComplete only .