rx java - Is there any difference between Observable and Future.get -


दो के बीच कोई फर्क?

  स्ट्रिंग r1 = नया Google कॉमांड ()। कतार ( )।प्राप्त();  

और

  निरीक्षण योग्य & lt; स्ट्रिंग & gt; GResp = नया GoogleCommand ()। निरीक्षण (); स्ट्रिंग r1 = gResp.toBlockingObservable ()। एकल ();  

ट्विटर से प्रतिक्रिया मिली:

पालन करें () उत्सुकता से निष्पादित और कैश करते हैं जबकि toObservable () सदस्यता लेने तक आलसी है और कैशिंग नहीं जोड़ता।


Comments

Popular posts from this blog

c++ - C/pp Sockets, recv()/send() works only under gdb -

GO: Serve static pages -

objective c - How to open front/back camera at the same time in iOS developing? -