Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
两者有什么区别吗?
String r1 = new GoogleCommand().queue().get();
和
Observable<String> gResp = new GoogleCommand().observe(); String r1 = gResp.toBlockingObservable().single();
得到了推特的回复:
observe()急切地执行和缓存,而toObservable()在订阅之前是惰性的,并且不添加缓存。
observe()
toObservable()