A promise-based API using react/promise would be interesting.
One main question to deal with though: Since callbacks can receive many return values but promises can only hold one value, what do we do. An option would be to resolve the promise with an array of arguments.
A promise-based API using react/promise would be interesting.
One main question to deal with though: Since callbacks can receive many return values but promises can only hold one value, what do we do. An option would be to resolve the promise with an array of arguments.
Better suggestions welcome.