this is a sample code in web3 document :
var myEvent = myContractInstance.MyEvent({some: 'args'}, {fromBlock: 0, toBlock: 'latest'});
myEvent.watch(function(error, result){ ... });
myEvent.stopWatching();
// extra code to run
The first and second line will have all matching events to undergo the callback function, asynchronously.
If there is more code to run, does stopWatching() method wait until all events complete their callback functions, or do the callback functions run parallel with the extra code?