Hi Christian,
This is great. I particularly like the way errors in the async execution are captured:
declare function local:result($id){
try{
map{ "result":async:result($id)
}
} catch * {
map{ "error": map {
'code': $err:code,
'description': $err:description,
'module': $err:module,
'line': $err:line-number,
'column': $err:column-number,
'value': $err:value
}
}
}
};
async:ids()!local:result(.)
I see
async:update is marked as an updating function
.Is this correct as it also returns a result
? I would have thought it causes an update later but it is not itself updating. This causes problems as the query id can not be captured or suppressed from the output.