GeekNews icon indicating copy to clipboard operation
GeekNews copied to clipboard

emitter.onNext内代码发生异常,却不回调CommonSubscriber的onError

Open xuminmin0405 opened this issue 6 years ago • 0 comments

private static <T> Flowable<T> createData(final T t) { return Flowable.create(new FlowableOnSubscribe<T>() { @Override public void subscribe(FlowableEmitter<T> emitter) throws Exception { try { emitter.onNext(t); emitter.onComplete(); } catch (Exception e) { emitter.onError(e); } } }, BackpressureStrategy.BUFFER); }

xuminmin0405 avatar May 15 '19 09:05 xuminmin0405