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

Pipe allows the Actor to send its output message directly to another Actor, where the Actor that receives the Pipe will be responsible for following the flow from then on. This is done as part of the actor's response flow. Pipes are detached from the Actor that received the input, that is, when you forward a message to another actor through a Pipe, the actor that performs the Pipe is free to process another message and the actor that is receiving the Pipe is the one who will respond to the original caller.

Summary

Types

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

Functions

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