The whenStable api call provides a nice way to wait for the actor system to become stable.
Unfortunately an actor might schedule messages to be invoked at some later point like so
Scheduler.scheduleOnce(self, Message, 1, TimeUnit.SECONDS)
Of course there are other ways to make the system unstable, such as messages sent dynamically on intervals.
Unless there is a way to find out if the system can get stable, the whenStable method call can be easily misinterpreted.
The whenStable api call provides a nice way to wait for the actor system to become stable.
Unfortunately an actor might schedule messages to be invoked at some later point like so
Of course there are other ways to make the system unstable, such as messages sent dynamically on intervals.
Unless there is a way to find out if the system can get stable, the whenStable method call can be easily misinterpreted.