Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-3460

Serialize module event hooks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 2.8.0
    • cordova-cli
    • 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.

      Attachments

        Activity

          People

            filmaj Filip Maj
            mwbrooks Michael William Brooks
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: