feat: 抽象更高层的状态事件注册接口.
This commit is contained in:
@@ -38,6 +38,7 @@ public class MachineTest {
|
||||
if (l.switchTo(PrinterState.STOPPING))
|
||||
l.switchTo(PrinterState.STOPPED);
|
||||
})
|
||||
.withInitial(PrinterState.STOPPING)
|
||||
.concurrent()
|
||||
.build();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user