spring-projects / spring-statemachine

Spring Statemachine is a framework for application developers to use state machine concepts with Spring.
1.54k stars 604 forks source link

Replace resetStateMachine with resetStateMachineReactively #950

Closed xJoeWoo closed 3 years ago

xJoeWoo commented 3 years ago

Fix #949

  1. Marked resetStateMachine as deprecated and replace resetStateMachine() calls to resetStateMachineReactively().block().
  2. Introduced Mono#defer to AbstractPersistStateMachineHandler#handleEventWithStateReactively for initialing the state machine lazily.
jvalkeal commented 3 years ago

lgtm!

jvalkeal commented 3 years ago

Merged per 048e930a19faa499222f1376173b7d64c91069aa