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

chore: Make use of statefulMap instead. #330

Merged
merged 3 commits into from
Jan 28, 2024
Merged

Conversation

He-Pin
Copy link
Member

@He-Pin He-Pin commented Jan 27, 2024

Motivation:
Make use of statefulMap

@He-Pin He-Pin marked this pull request as draft January 27, 2024 08:08
@He-Pin He-Pin force-pushed the statefulMapConcat branch from c1bd8b0 to 753c2af Compare January 27, 2024 08:19
@He-Pin He-Pin force-pushed the statefulMapConcat branch from 0ca2f82 to a6350fc Compare January 27, 2024 08:52
@He-Pin He-Pin marked this pull request as ready for review January 27, 2024 09:36
@@ -47,18 +47,13 @@ private[google] object AnnotateLast {

def apply[T]: Flow[T, MaybeLast[T], NotUsed] =
Flow[T]
.map(Some(_))
.concat(Source.single(None))
Copy link
Member Author

@He-Pin He-Pin Jan 27, 2024

Choose a reason for hiding this comment

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

some kind of fs2's noneTerminate operator.

@pjfanning pjfanning added this to the 1.1.0 milestone Jan 27, 2024
Copy link
Contributor

@pjfanning pjfanning left a comment

Choose a reason for hiding this comment

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

lgtm - but can't be merged util we set up the 1.1 build - basically #325 plus a tag that I will add after 325 is merged

@pjfanning
Copy link
Contributor

v1.1 commits are now allowed

@He-Pin
Copy link
Member Author

He-Pin commented Jan 28, 2024

@pjfanning @mdedetrich can this be merged now?

Copy link
Contributor

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

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

lgtm and yes it can since we are on 1.1.0 now

@He-Pin He-Pin merged commit 79a11d3 into apache:main Jan 28, 2024
49 of 50 checks passed
@He-Pin He-Pin deleted the statefulMapConcat branch January 28, 2024 03:24
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.

3 participants