-
Notifications
You must be signed in to change notification settings - Fork 643
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
Impl PublishWithContext and make subscriber and publisher accessible #2882
base: main
Are you sure you want to change the base?
Conversation
Made subscriber and publisher package private. In case when you need custom approach or just client
Hi @bc-tayvs, Thank you for your contribution! We really value the time you've taken to put this together. Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement: |
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.
looks like a nice convenience
@@ -127,15 +140,28 @@ object GooglePubSub { | |||
.mapMaterializedValue(_.flatMap(identity)(ExecutionContexts.parasitic)) | |||
} | |||
|
|||
private def publisher(mat: Materializer, attr: Attributes) = | |||
@ApiMayChange |
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.
These are not supposed to be public user facing API? Then they should be marked with @InternalApi
instead.
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.
I think they should be left private, or if I'm missing a use case, please describe it a bit.
* | ||
* @param parallelism controls how many messages can be in-flight at any given time | ||
*/ | ||
def publishWithContext[Ctx](parallelism: Int): FlowWithContext[PublishRequest, Ctx, PublishResponse, Ctx, NotUsed] = |
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.
no corresponding in javadsl?
Made subscriber and publisher package private. In case when you need custom approach or just client
Issue