Skip to content
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

Fix client request using combine #33

Merged
merged 2 commits into from Nov 9, 2021
Merged

Fix client request using combine #33

merged 2 commits into from Nov 9, 2021

Conversation

iON1k
Copy link
Contributor

@iON1k iON1k commented Nov 8, 2021

Method Client.request (from Client+Combine.swift) starts its work before subscription to the publisher (it works like Future), but it cancels request if at least one subscriber unsubscribe from the publisher.

In this PR I made publisher 'cold'. For each subscriber it starts separated request (as in Client+RxSwift.swift). So there isn't such problem as I described above.

@Alexander-Ignition Alexander-Ignition added the bug Something isn't working label Nov 8, 2021
@modestman modestman merged commit 6afcc21 into RedMadRobot:master Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants