View Source SpawnSdk.Flow.Forward (spawn_sdk v1.3.1)

Forward allows the Actor to delegate processing of the incoming message to another Actor. This is done as part of the actor's response flow. Forwards are detached from the Actor that received the input, that is, when you forward a message to another actor, the actor that performs the forwarding is free to process another message and the actor that is receiving the forwarding will respond to the original caller.

Summary

Types

@type action() :: String.t() | atom()
@type actor_name() :: String.t()
@type t() :: %SpawnSdk.Flow.Forward{
  action: String.t() | atom(),
  actor_name: String.t()
}

Functions

@spec to(actor_name(), action()) :: t()