shutdown

open suspend override fun shutdown(): Result<Unit>

Initiates a shutdown operation for the associated actor, sending a request to the actor's service and processing the response to determine the outcome of the operation.

Return

A Result wrapping Unit upon successful shutdown, or a failure if an error occurs during the process. This includes exceptions caused by unexpected response types or errors reported by the actor's service.