![](/img/trans.png)
[英]How to stop ActorSystem schedular which is scheduled with interval
當 checkStatus 情況為真時,我如何停止調度程序。 ...
[英]How to stop ActorSystem schedular which is scheduled with interval
當 checkStatus 情況為真時,我如何停止調度程序。 ...
[英]Scala main class with futures not terminating
我有一個 Scala 主課 我看到rec的值被打印,也被terminated :::即最后一行也被打印。 然而,程序並沒有結束。 我在這里錯過了什么嗎? ...
[英]Akka: Test scheduled actors using Testkit
我有一個父演員,它創建了一個子演員,子演員每分鍾都會向父母打招呼,如下所示 class MasterActor extends Actor with ActorLogging { override def receive: Receive = { case "Gre ...
[英]how akka ActorSystem process receives from actor
如何讓一個進程使用 ActorOf 創建 Actor 並允許 Actor ping 父進程。 我的目的是允許演員向其父進程(ActorSystem 主線程)發送信號以調用 system.terminate。 但不知道如何做到這一點。 這是 snipit,但相反,我不想從 main 調用 termin ...
[英]Scala - Difference between Supervisor and Try-catch error handling strategies
有人能解釋一下 Scala 中 ActorSystem 中“主管”和“try-catch”錯誤處理策略之間的區別嗎? ...
[英]Akka 2.6 how to read `Dead Letters` in Akka Typed?
我已閱讀此文檔https://doc.akka.io/docs/akka/current/general/message-delivery-reliability.html#dead-letters ,其中說: 演員可以訂閱事件流上的 akka.actor.DeadLetter 類,請參閱事件 ...
[英]Akka Http singleRequest stream is hanging after multiple requests
我試圖請求多個鏈接,一次使用akka-https Http().singleRequest 。 但是,在下面的演示代碼中, foldLeft只會循環四次,並且應用程序永遠不會到達println語句或終止。 我正在使用默認的akka配置,但是我認為Http().singleReques ...
[英]Are there patterns for writing a library that hides its actor system implementation?
我見過的所有actor系統實現(主要是使用Akka)都假定有一個Web應用程序,這意味着一個HTTP接口可以很自然地由異步actor系統提供服務。 但是,如果我要編寫一個桌面應用程序或一個庫,以用作獨立於平台的應用程序的組件怎么辦? 我希望客戶val childObj = paren ...
[英]akka : terminationCallbacks not received
我有一個actorsystem ,其中已在actorsystem終止上注冊了一些代碼。 代碼如下: 我注意到的怪異行為與回調有關。 當我正常運行該應用程序時,我再也不會收到我注冊代碼的回調。 但是,當我在調試模式下運行並且在terminate()方法中等待幾秒鍾時,該行就會被打 ...