Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.8.0
-
None
Description
When using cordova-cli as a module, a task execute immediately and does not wait for each event hook to complete.
We need to update the hook module to serialize each listener subscribed to an event hook. A done callback can be passed into each event listener to support asynchronous hooks.
cordova.on('before_build', function(data, done) { // do something done(); });
There is no need to update the script hooks because they currently wait for each process to exit before continuing.