very low: state machine impl
betula opened this issue · 1 comments
betula commented
This abstraction is necessary for the implementation of serial operations. Reactions on each section of the serial operations.
const m = machine()
.step(a, () => {})
.step(b, () => 0)
.step(machine.oneOf()
.select(a, () => {})
.select(b)
.select(c), () => {})
.loop();
But I think the yield generator function is an interesting way of decision.
loop(function *() {
yield a;
yield b;
yield loop.oneOf([a, b, c]) // or loop.oneOf().select(a, () => {}).select(b, () => {})... chain function
yield loop.race([a, b, c])
yield loop.all([a, b, c])
// Promise namespace operations for suggest
});
betula commented
Added to "the stream of conciseness 0.7+ roadmap"