“Dead letters encountered” as soon as actors are placed into router

前端 未结 3 489
南笙
南笙 2021-01-01 00:01

Here\'s what I\'m finding, and for the life of me I can\'t navigate to the reason. I\'m creating \"printer\" actors that basically either do nothing, or print a message bas

3条回答
  •  难免孤独
    2021-01-01 00:34

    One solution is to use the Scheduler, and instead of

    context.stop(self)
    

    use:

    system.scheduler.scheduleOnce(1 second) {
      self ! PoisonPill
    }
    

提交回复
热议问题