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
@type t() :: %Raxol.Core.Runtime.Directive.Spawn{fun: (-> any())}