Skip to content

v0.9.0

Latest

Choose a tag to compare

@github-actions github-actions released this 20 Nov 02:45
075a7f5
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.