/** * Creates {@link Completable} which will perform Delete Operation lazily when somebody subscribes * to it. * * <dl> * <dt><b>Scheduler:</b> * <dd>Operates on {@link StorIOContentResolver#defaultScheduler()} if not {@code null}. * </dl> * * @return non-null {@link Completable} which will perform Delete Operation. */ @NonNull @CheckResult @Override public Completable asRxCompletable() { return RxJavaUtils.createCompletable(storIOContentResolver, this); }
/** * Creates {@link Single} which will perform Delete Operation lazily when somebody subscribes to * it and send result to observer. * * <dl> * <dt><b>Scheduler:</b> * <dd>Operates on {@link StorIOContentResolver#defaultScheduler()} if not {@code null}. * </dl> * * @return non-null {@link Single} which will perform Delete Operation. And send result to * observer. */ @NonNull @CheckResult @Override public Single<DeleteResult> asRxSingle() { return RxJavaUtils.createSingle(storIOContentResolver, this); }