Fluture v12 Upgrade Guide
Promise function reworked
fluture-js/Fluture#331. In order to call
promise on a Future, the rejection branch must now be compatible with type
Error, and thrown exceptions are now merged with the rejection branch, instead of being rethrown.
This means you can now use
promise together to create Promises that capture exceptions, rejections, and resolutions, each in their own branch.
Anywhere you're using
promise on a Future which doesn't have
Error as its rejection type, you have to
mapRej it to an
Error type first, or
fold it out of the rejection branch to avoid mixing types in your Promise rejection branch.