async calls callback

bspendbspend Member Posts: 5
when i'm using callback for async calls to const returning functions (i want to use metamask, which doesnt support sync calls), i'd have something like this:

var contractA = web3.eth.contract(abiDefinition).at(address);
contractA.test(10, function(error, result){

do u know is there a way to pass more arguments than just function(error, result) ?
it'd be useful if i'm calling const function in a loop...say i'd want something like function(error, result, i) ...
Sign In or Register to comment.