Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Action result dependent compensation #13 #10 #19

Merged
merged 2 commits into from Jul 3, 2019

Conversation

VladKopanev
Copy link
Owner

This PR adds new functions: more powerful compensate that allows compensation action to be dependent on the result of associated action and also another two functions derived from this: compensateIfFail and compensateIfSuccess.
compensateIfFail would execute compensation action only if associated action fails. compensateIfSuccess would execute compensation action only if associated action succeeds.

@codecov-io
Copy link

codecov-io commented Jul 3, 2019

Codecov Report

Merging #19 into master will increase coverage by 8.48%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #19      +/-   ##
==========================================
+ Coverage   86.11%   94.59%   +8.48%     
==========================================
  Files           1        1              
  Lines          36       37       +1     
==========================================
+ Hits           31       35       +4     
+ Misses          5        2       -3
Impacted Files Coverage Δ
...src/main/scala/com/vladkopanev/zio/saga/Saga.scala 94.59% <88.88%> (+8.48%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8e0d2f...eeeac13. Read the comment docs.

@VladKopanev VladKopanev merged commit a78c0d3 into master Jul 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants