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

   Motivation:
   Even currently, we have `Source#unfold` and `Source#queue,` which is still a 
bit different from the Reactor's `Flux#create` method.
   
   When we want to control progress, we still make it lazy. btw, the behavior 
seems to be expressed with Source#lazySource and Source#queue.
   
   I think the logic should not be that hard to implement but will make users' 
lives much easier.
   
   refs: 
https://projectreactor.io/docs/core/release/reference/coreFeatures/programmatically-creating-sequence.html#producing.create
   
   ```java
   Flux<String> bridge = Flux.create(sink -> {
       myEventProcessor.register(
         new MyEventListener<String>() {
   
           public void onDataChunk(List<String> chunk) {
             for(String s : chunk) {
               sink.next(s);
             }
           }
   
           public void processComplete() {
               sink.complete();
           }
       });
   });
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to