-
Notifications
You must be signed in to change notification settings - Fork 434
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
Combine Interoperability: first iteration #776
base: master
Are you sure you want to change the base?
Conversation
dce8b0a
to
d7b1a5d
Compare
let (shouldSendImmediately, isDemandUnlimited): (Bool, Bool) = self.state.modify { state in | ||
guard state.hasCancelled == false else { return (false, false) } | ||
|
||
let unsatified = state.requested - state.satisfied |
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.
[typo] unsatisfied
} | ||
|
||
final class ProducerSubscription<S: Subscriber>: Combine.Subscription { | ||
typealias Output = S.Output |
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.
This has been renamed to .Input
return .startUpstream | ||
} | ||
|
||
state.requested = state.requested + incoming |
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.
This can be rewritten state.requested += incoming
Provide explicit means to convert any Combine publisher to
SignalProducer
, and to convert RAS primitives to aPublisher
(basic backpressure support included for Combine compliance).Interoperability for
Scheduler
andDisposable
is not yet considered, since they have incompatible API contracts with their Combine counterparts.Checklist