vickumar1981 / pyeffects

Handle side-effects in Python like a boss. Implements functional types for Either, Option, Try, and Future.
Other
30 stars 6 forks source link

Add an `on_failure` subscriber to `Future` class #2

Closed vickumar1981 closed 11 months ago

vickumar1981 commented 4 years ago

Add an on_failure subscriber method for the Future class. Should work like on_complete but only trigger the callback if the resulting Future has failed.