stats

open suspend override fun stats(): Result<Actor.Stats>

Retrieves statistical information about the actor.

Sends a request to the actor's service to collect statistical data. The response is processed to determine success, failure, or unexpected scenarios. On success, it returns the actor's statistics; on failure, it constructs and returns an appropriate exception.

Return

A Result containing the actor's Actor.Stats if the operation succeeds, or a failure if an error occurs during the execution.