Currently, Promises are very C++ STL oriented (around std::future/std::promise).
Since we have a more callback based approach on iOS and Android, I should probably add a different Path to promises for those platforms that simplifies the structure a bit.
We don't need to run a synchronous wait on a waiter thread pool. Instead, we can probably just add the listeners to some Promise structure, and call back whenever we're ready. This could potentially speed up Promises even more to make them as fast as possible.
Currently, Promises are very C++ STL oriented (around
std::future
/std::promise
).Since we have a more callback based approach on iOS and Android, I should probably add a different Path to promises for those platforms that simplifies the structure a bit.
We don't need to run a synchronous wait on a waiter thread pool. Instead, we can probably just add the listeners to some Promise structure, and call back whenever we're ready. This could potentially speed up Promises even more to make them as fast as possible.
cc @grabbou