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 };