You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage of delaySubscription has started popping up in our code base, and I've noticed that we always have to define a Func0 simply to yield an observable that's either cold (in which case the function provides no value) or hot (in which case the function also provides no value). It's not clear to me why the function indirection was added in the first place as it's provided no data and Observable.defer could have served in its place.
I would like to propose adding an Observable-taking overload and replacing the Func0 variant to instead wrap its given argument in Observable.defer before passing to OnSubscribeDelaySubscriptionWithSelector.
Being able to sneak this in before 1.0.15 / 1.1.0 would also be nice 😀
The text was updated successfully, but these errors were encountered:
Usage of
delaySubscription
has started popping up in our code base, and I've noticed that we always have to define aFunc0
simply to yield an observable that's either cold (in which case the function provides no value) or hot (in which case the function also provides no value). It's not clear to me why the function indirection was added in the first place as it's provided no data andObservable.defer
could have served in its place.I would like to propose adding an
Observable
-taking overload and replacing theFunc0
variant to instead wrap its given argument inObservable.defer
before passing toOnSubscribeDelaySubscriptionWithSelector
.Being able to sneak this in before 1.0.15 / 1.1.0 would also be nice 😀
The text was updated successfully, but these errors were encountered: