-
Notifications
You must be signed in to change notification settings - Fork 822
Open
Description
Hi @codeestX
public 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);
}
For example: server response:
{
"code": 200,
"data": null
}
How to createData with "data" is null?
Please help me reslove it.
Thanks
Metadata
Metadata
Assignees
Labels
No labels