Just as an idea ``` fun loadCoupons(): Observable ...
# getting-started
u
Just as an idea
Copy code
fun loadCoupons(): Observable =
        loadCouponsCachedObservable ?:
                createObservable().apply { loadCouponsCachedObservable = this }
👍 3
b
uhe: wow, really fancy solution
g
Haha, use the same approach often for Android inflater in recycler view. But each time when I need it I reinvent it again 🙃