View Source SpawnSdk.Flow.Forward (spawn_sdk v0.5.5)

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.

Link to this section Summary

Link to this section Types

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

Link to this section Functions

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