Manage state with Event-Driven automaton
Nov 25, 2018Disclaimer: This article describes unobvious solution for inobvious problem. Before you
roast meimplement it, I recommend reading this article till the end and think twice.
Hi everyone! When we code, quite often we have to deal with a state. One of such situations is objects lifecycle. Manage an object with multiple possible states can be a really non-trivial task. Add here concurrent execution and you have a very serious problem. There is an effective and natural solution to this. In this article I’ll tell about event-driven finite-state machine and how to build it in Go.
…