hiposfer / hive

Your go-to routing app for public transport
GNU Lesser General Public License v3.0
10 stars 0 forks source link

consider extending `work/transact!` to handle promises #112

Closed carocad closed 6 years ago

carocad commented 6 years ago

It should be trivial to extend transact! to support promises.

The use case for this is to avoid unnecessary wrapping of native JS functionality. Promises are one of Js most used features so it makes sense to support it.

There are two ways that this can work:

The first option handles error implicitedly, the second one lets the creator of the promise handle the error ....