How to add elements to Source dynamically?

前端 未结 3 1739
礼貌的吻别
礼貌的吻别 2020-12-14 07:50

I have example code to generate an unbound source and working with it:

object Main {

 def main(args : Array[String]): Unit = {

  implicit val system         


        
3条回答
  •  攒了一身酷
    2020-12-14 08:25

    With Akka Streams 2 you can use a sourceQueue : How to create a Source that can receive elements later via a method call?

提交回复
热议问题