Trait meio::handlers::Interaction [−][src]
Expand description
Interaction message to an Actor
.
Interactions can’t be high-priority (instant), because it can block vital runtime handlers.
Long running interaction will block the actor’s routine for a long time and the app can
be blocked by Address::interact
method call. To avoid this issue you have:
-
Use
ActionHandler
withInteract
wrapper as a message to control manually when a response will be send to avoid blocking of anActor
that performs long running interaction. -
Use
interaction
method and send a response from aLiteTask
to anInteractionResponse
handler of a caller.