-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.x: deprecate create(), add alternatives #5086
Conversation
Codecov Report@@ Coverage Diff @@
## 1.x #5086 +/- ##
============================================
- Coverage 84.24% 84.24% -0.01%
Complexity 2859 2859
============================================
Files 288 288
Lines 17805 17807 +2
Branches 2420 2420
============================================
+ Hits 15000 15001 +1
- Misses 1954 1955 +1
Partials 851 851
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work!
* @see rx.functions.Cancellable | ||
* @since 1.2.7 - experimental | ||
*/ | ||
@Experimental |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lack of a stable fromEmitter
and now two-argument create()
is quite a burden on libraries. I would love to see this go to stable in 1.3 (skipping @Beta
).
*/ | ||
@Experimental | ||
@Deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -49,7 +49,7 @@ public void before() { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this file needs renamed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
2027ff0
to
a072448
Compare
Looks like
create()
won't go away unless we get the IDE mark it someway, such as being deprecated.This PR deprecates
create()
and addsunsafeCreate
for internal use and deprecate-renamesfromEmitter
tocreate(Action1, BackpressureMode)
.There was an earlier attempt at deprecating
create
, #4253, but it was not followed up. This PR executes what I suggested in one of the comments.