Runs the method while state is active, passing an AbortSignal that aborts on exit. What it returns decides the actor: a promise, a child Machine, a Subscribable, or a cleanup function.
state
Runs the method while
stateis active, passing an AbortSignal that aborts on exit. What it returns decides the actor: a promise, a child Machine, a Subscribable, or a cleanup function.