He-Pin commented on issue #1626: URL: https://github.com/apache/pekko/issues/1626#issuecomment-2816768379
```scala Source.create[String](1024)(sink => { sink.offer("a") sink.offer("b") sink.complete() }) .toMat(TestSink.probe[String])(Keep.right) .run() .ensureSubscription() .request(2) .expectNext("a", "b") .expectComplete() ``` I implemented it with `Source.queue` , @pjfanning wdyt, which will make Java dsl much nicer, same as `Flux#create` -- 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-unsubscr...@pekko.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For additional commands, e-mail: notifications-h...@pekko.apache.org