Raxol.Core.Runtime.Directive.Spawn (Raxol Core v2.6.0)

Copy Markdown View Source

Spawn a Task that invokes fun/0 and sends its return value back as {:command_result, result}. Use Raxol.Agent.Directive.async/1 (from raxol_agent) when the task needs to send multiple messages.

Summary

Types

t()

@type t() :: %Raxol.Core.Runtime.Directive.Spawn{fun: (-> any())}