OptionalidOptionalonTaken on xstate.done.actor.<id>; the event carries output.
OptionalonTaken on xstate.error.actor.<id>; the event carries error.
OptionaloutputA child machine's output for its done event.
Starts the actor. What it returns decides the kind: a promise (done with its value, or an
error), an Interpreter (a child machine, done when it reaches a final state), a
Subscribable (values arrive as xstate.snapshot.<id>, then done), or a cleanup function
(a callback actor).
Defaults to
<state path>:invocation[<index>].