scala - Enable tilde trigger with Akka and sbt -
with sbt possible ~run recompile , run program when source changes. once actorsystem created not work anymore.
when system shutdown works, don't want shutdown system.
import akka.actor.actorsystem object test { def main(args: array[string]) : unit = { val system = actorsystem() // if line removed, source code detection disabled system.shutdown() } } is there workaround ?
you have remember sbts ~run not hot-reloading, "once process finishes, run again please". akka's thread-pools non-daemonic, means until actorsystem "alive" program not terminate, sbt's ~run won't trigger again.
instead might want sbt-revolver sbt plugin, can you're looking (including akka based apps).
Comments
Post a Comment