File size: 646 Bytes
d739b1b | 1 2 3 4 5 6 7 8 9 10 11 12 | // ์ทจ์ยท์ข
๋ฃ๋ ์ค์ ๋
ธ๋ ํธ์ถ์ด ๋ฐํํ ๋ค ์คํ๊ถ์ ํด์ ํ๋ค. ์ ํธ๋ฅผ ๋ฌด์ํ ๋ฆ์ ๊ฒฐ๊ณผ๋ ๊ธฐ๋ค๋ฆฐ๋ค.
// ์ค๋ช
๋ฌธ์: docs/specs/bong-browser-use.md (v1.12.0)
async function execute(run, node, call) {
const pending = Promise.resolve().then(() => {
run.abortController?.signal.throwIfAborted();
return require('./node-context').withNode(run, node.id, run.nodeTasks?.[node.id] || null, call);
});
run.pendingNodeOperations ||= new Set(); run.pendingNodeOperations.add(pending);
try { return await pending; } finally { run.pendingNodeOperations.delete(pending); }
}
module.exports = { execute };
|