domenic at domenicdenicola.com (2014-02-13T09:33:06.699Z)
Fair enough, would be nice to see an alternative to:
https://github.com/apache/cordova-cli/blob/master/src/hooker.js#L155
If you multiply that pattern across many projects with different 'styles' of writing it, complexity really adds up.
```js
Promises.join([a,b,c]).run().then(...) // parallel
Promises.join([a,b,c]).setExecution('serial').run().then(...) // serial?
```
http://developer.android.com/reference/android/os/AsyncTask.html#SERIAL_EXECUTOR
As I was writing this, I saw the async proposal:
http://wiki.ecmascript.org/doku.php?id=strawman:async_functions&s=async
await would be king for serial execution of animations or file system tasks.
It's all a bit confusing but going in an interesting direction,
On Sun Feb 9 07:30 PM, Brendan Eich wrote: > Jonathan Bond-Caron wrote: > > Thoughts on adding options/flags > > Just say no. > > http://ariya.ofilabs.com/2011/08/hall-of-api-shame-boolean-trap.html > > This is a symptom. We are resisting the larger issue of "do both" or design-by- > committee unioning or other such failure modes. Fair enough, would be nice to see an alternative to: https://github.com/apache/cordova-cli/blob/master/src/hooker.js#L155 If you multiply that pattern across many projects with different 'styles' of writing it, complexity really adds up. Promises.join([a,b,c]).run().then(...) // parallel Promises.join([a,b,c]).setExecution('serial').run().then(...) // serial? http://developer.android.com/reference/android/os/AsyncTask.html#SERIAL_EXECUTOR As I was writing this, I saw the async proposal: http://wiki.ecmascript.org/doku.php?id=strawman:async_functions&s=async await would be king for serial execution of animations or file system tasks. It's all a bit confusing but going in an interesting direction, Cheers, J