Created
August 25, 2021 13:26
-
-
Save aymericbouzy/95a9fb768d7fa8deb57f06db1171ebcb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Saga() | |
.do(lockResource) | |
.withCompensatingAction(unlockResource) | |
.then(processPayment) | |
.withCompensatingAction(cancelPayment) | |
.then(addBillingItem); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment