Multiple event loops 多路事件循环
Typically, such an application is split into several event loops, each residing in its own thread.
通常,这种应用程序被分为若干个事件循环,每个循环都有自己独有的线程。
Applications, or part thereof, which have recurrent states and can have event loops, are ideally represented by business state machines.
具有循环状态和可能拥有事件循环的应用程序或其一部分在概念上以业务状态机表示。
Loops and event handlers usually imply that the control flow is going back, which suggests that state machine is a more suitable implementation.
循环和事件处理程序通常意味着控制流回退,这表明状态机是一种更合适的实现方法。
应用推荐