thomasnield
08/22/2016, 4:54 AMjw
08/22/2016, 4:55 AMjw
08/22/2016, 4:55 AMthomasnield
08/22/2016, 4:56 AMthomasnield
08/22/2016, 4:56 AMthomasnield
08/22/2016, 4:56 AMjw
08/22/2016, 4:56 AMthomasnield
08/22/2016, 4:56 AMjw
08/22/2016, 4:56 AMjw
08/22/2016, 4:56 AMjw
08/22/2016, 4:56 AMjw
08/22/2016, 4:57 AMthomasnield
08/22/2016, 4:57 AMjw
08/22/2016, 4:57 AMthomasnield
08/22/2016, 4:57 AMjw
08/22/2016, 4:58 AMjw
08/22/2016, 4:58 AMthomasnield
08/22/2016, 4:59 AMy2k_
08/24/2016, 11:01 AMkirillrakhman
08/24/2016, 12:51 PMObservable.fromCallable { foo() }.cache().toSingle()
kirillrakhman
08/24/2016, 12:52 PMkirillrakhman
08/24/2016, 12:53 PMjw
08/24/2016, 1:00 PM.publish().autoConnect(0).replay(1)
bamdmux
08/24/2016, 1:19 PMjw
08/24/2016, 2:11 PM.publish().autoConnect(0)
is the "hot" partjw
08/24/2016, 2:12 PM.cache()
or replay(1)
doesn't matter here, they'll both have the same behavior because it's a single-item observablejw
08/24/2016, 2:13 PMcache()
because people do things like cache(1)
thinking it'll behave like replay(1)
and then the leak a ton of memorybamdmux
08/25/2016, 5:25 AMy2k_
08/25/2016, 8:27 AMkirillrakhman
08/25/2016, 12:45 PMcache(1)
is that people think it will only cache one item although it will cache all of them while replay(1)
will really only cache one item and discard the other ones. If I have an Observable
(say from Retrofit) that only emits one item and I use cacheWithInitialCapacity(1)
then everything is ok?