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

Fixing issues with ConcurrentEventStream from #101 #102

Merged
merged 4 commits into from Jul 15, 2022
Merged

Fixing issues with ConcurrentEventStream from #101 #102

merged 4 commits into from Jul 15, 2022

Conversation

d-exclaimation
Copy link
Member

Addressing issue #101

  • Updated .mapStream and .filterStream to catch thrown error and pass it to the next/transformed stream
  • Updated .mapStream and .filterStream to call continuation.finish() when the source stream ended/finished with no error
  • Updated .mapStream and .filterStream to cancel Task used to consume source stream when it has been terminated
  • Updated SubscriptionsTest's testNoTriggerAfterDone
, testErrorDuringSubscription
, and testArguments to not discard the ConcurrentEventStream which would close all Task used to perform transformations of element (Previously was not an issue because of the leak that keep the Task alive).

Copy link
Member

@NeedleInAJayStack NeedleInAJayStack left a comment

Choose a reason for hiding this comment

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

Thanks for the submission! Overall, it looks great. I just had one small question about some syntax.

@NeedleInAJayStack NeedleInAJayStack merged commit 8f0a07e into GraphQLSwift:master Jul 15, 2022
@d-exclaimation d-exclaimation deleted the leak-fix branch July 15, 2022 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants