RXJava异步代码

 Observable.create(new Observable.OnSubscribe<List<SpeechResourceModel>>() {
    @Override
    public void call(Subscriber<? super List<SpeechResourceModel>> subscriber) {
        subscriber.onNext();
    }
}).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread())
        .subscribe(new Action1<List<SpeechResourceModel>>(){

            @Override
            public void call(List<SpeechResourceModel> data) {
                
            }
        });

你可能感兴趣的:(RXJava异步代码)