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

#141 · open · 0 comments

View on GitHub ↗

xuminmin0405

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); }

Comments