bada-terminal / src /workflow /node-operation.js
VanyaJ's picture
Release BADA Terminal v2.1.0 (Enterprise Ontology, NVIDIA auto-ontology, Release Preflight)
d739b1b verified
Raw History Blame Contribute Delete
646 Bytes
// ์ทจ์†Œยท์ข…๋ฃŒ๋Š” ์‹ค์ œ ๋…ธ๋“œ ํ˜ธ์ถœ์ด ๋ฐ˜ํ™˜ํ•œ ๋’ค ์‹คํ–‰๊ถŒ์„ ํ•ด์ œํ•œ๋‹ค. ์‹ ํ˜ธ๋ฅผ ๋ฌด์‹œํ•œ ๋Šฆ์€ ๊ฒฐ๊ณผ๋„ ๊ธฐ๋‹ค๋ฆฐ๋‹ค.
// ์„ค๋ช… ๋ฌธ์„œ: 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 };