You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add lists of machines: append and remove (0.9.0) (#93)
assign(key, spawn(x)) keeps one machine. append(key, spawn(x)) adds what
the spawn makes to a list in the context, which need not exist yet, and
remove(key, value) stops a machine and takes it out of the list, if it
is in it. The value is event.data or context.key. stop() stops every
machine in the list.
append and remove are keywords where an action goes: a state can't be
called either and be a transition's target, though an event can.
The compiler warns about a key that assign spawns into and append adds
to, and about a send to a key that holds a list.