我正在玩Scalatra和Akka,就像指南建议http://www.scalatra.org/guides/async/atmosphere.html一样 . 我've modified the guid so that I' m将演员系统传递到Atmosphere客户端 .
但是,我想知道如何从actor系统返回到客户端的消息 .
我不能使用ask模式,因为actor系统可能会向客户端发送多条消息 - 而不是一条消息 . 我该怎么办?
我正在玩Scalatra和Akka,就像指南建议http://www.scalatra.org/guides/async/atmosphere.html一样 . 我've modified the guid so that I' m将演员系统传递到Atmosphere客户端 .
但是,我想知道如何从actor系统返回到客户端的消息 .
我不能使用ask模式,因为actor系统可能会向客户端发送多条消息 - 而不是一条消息 . 我该怎么办?
1 回答
也许你可以使用The Inbox .