You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "He-Pin (via GitHub)" <gi...@apache.org> on 2025/04/19 14:03:39 UTC

[I] Add bufferUntilChanged operator [pekko]

He-Pin opened a new issue, #1821:
URL: https://github.com/apache/pekko/issues/1821

   Maybe implemented with `aggregateWithBoundary`?
   
   eg:
   ```java
   		this.ollamaApi.pullModel(new PullModelRequest(modelName))
   				.bufferUntilChanged(OllamaApi.ProgressResponse::status)
   				.doOnEach(signal -> {
   					var progressResponses = signal.get();
   					if (!CollectionUtils.isEmpty(progressResponses) && progressResponses.get(progressResponses.size() - 1) != null) {
   						logger.info("Pulling the '{}' model - Status: {}", modelName, progressResponses.get(progressResponses.size() - 1).status());
   					}
   				})
   				.takeUntil(progressResponses ->
   					progressResponses.get(0) != null && "success".equals(progressResponses.get(0).status()))
   				.timeout(this.options.timeout())
   				.retryWhen(Retry.backoff(this.options.maxRetries(), Duration.ofSeconds(5)))
   				.blockLast();
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [I] Add Flow#bufferUntilChanged operator [pekko]

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin commented on issue #1821:
URL: https://github.com/apache/pekko/issues/1821#issuecomment-2907805498

   Maybe named it with `aggregateUntilChanged`, I think we can build this on top of `aggregateWithBoundary`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [I] Add Flow#aggregateUntilChanged operator [pekko]

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin commented on issue #1821:
URL: https://github.com/apache/pekko/issues/1821#issuecomment-2911155440

   @pjfanning @mdedetrich wdyt about this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [I] Add Flow#groupedAdjacentBy operator [pekko]

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin closed issue #1821: Add Flow#groupedAdjacentBy operator
URL: https://github.com/apache/pekko/issues/1821


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [I] Add Flow#aggregateUntilChanged operator [pekko]

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin commented on issue #1821:
URL: https://github.com/apache/pekko/issues/1821#issuecomment-2999535376

   I have a local branch nearly ready, and I will finish it this weekend.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org