in agent/agent-activationdb.js [90:108]
async function waitForCompletion(activationId) {
return pollActivations(
`${actionName()}_wskdebug_completed`,
a => {
// find the one with the $activationId we are waiting on
if (a.response && a.response.result &&
a.response.result.$activationId === activationId) {
const result = a.response.result;
delete result.$activationId;
return result;
}
},
() => {
if (outOfTime()) {
throw new Error(`Debugger did not complete activation within timeout.`);
}
}
);
}