View Source SpawnSdk.Flow.SideEffect (spawn_sdk v0.5.0-alpha.3)

Link to this section Summary

Link to this section Types

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

Link to this section Functions

Link to this function

effect(list, actor_name, command, payload)

View Source
@spec effect(list(), actor_name(), command(), payload()) :: [t()]
@spec of() :: [t()]
Link to this function

to(actor_name, command, payload)

View Source
@spec to(actor_name(), command(), payload()) :: t()