3 ms·
You're right. There's not a native solution. I've used Fluture (https://github.com/fluture-js/Fluture https://github.com/fluture-js/Fluture) for while now as it
by toastal 7y ago
You're right. There's not a native solution. I've used Fluture (https://github.com/fluture-js/Fluture https://github.com/fluture-js/Fluture) for while now as it follows the Fantasy Land spec. The canceler is returned in the Future's constructor. The biggest feature difference in comparison to Promises is that you can pass around a Future adding to the data transformation without it being invoked until fork is called.
It's good to know that there exists a way to do this natively now though.