Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Call Subscriber.onSubscribe(StreamSubscription) before returning from StreamPublisher.subscribe(Subscriber) #3360

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

BalmungSan
Copy link
Contributor

@BalmungSan BalmungSan commented Dec 13, 2023

Fixes #3359 ?

c.c. @armanbilge as always I couldn't resit and made some renames along the way, sorry 😅

Comment on lines 176 to 180
// SIDE-EFFECTING!
// We need this constructor to don't be wrapped on F,
// Because some consumers expect we call Subscriber.onSubscribe(StreamSubscription)
// Before returning from StreamPublisher.subscribe(Subscriber)
// See https://github.com/typelevel/fs2/issues/3359
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feedback or better wording is welcome :)

@armanbilge armanbilge merged commit da2e1ce into typelevel:main Dec 14, 2023
@BalmungSan BalmungSan deleted the fix-flow-subscription-subscribe branch December 14, 2023 12:57
@armanbilge armanbilge changed the title Call Subscriber.onSubscribe(StreamSubscription) before retruning from StreamPublisher.subscribe(Subscriber) Call Subscriber.onSubscribe(StreamSubscription) before returning from StreamPublisher.subscribe(Subscriber) Jan 17, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error using reactive streams toStreamBuffered with newer versions of the AWS SDK
2 participants