Files
marqdo/tests/lib/foreign-call.mq.md
T
cflmy 7859170aec feat(foreign): JSON call and parallel fan-out
F2: call/call_many JSON bridge, run_many ordered parallel execution with per-item isolation and concurrency cap, plus node gold tests for call and call_many.
2026-10-18 01:29:15 +08:00

31 lines
485 B
Markdown

---
title: foreign call and call_many
import foreign:lib/foreign.mq.md
---
# main
`双倍` =
```node
let s = "";
process.stdin.on("data", d => { s += d; });
process.stdin.on("end", () => {
console.log(JSON.stringify(JSON.parse(s) * 2));
});
```
**单个 = > foreign.call code=`双倍` input=1**
> print text=`单个`
`数值表` =
| 数值 |
|------|
| 1 |
| 2 |
| 3 |
| 4 |
**多个 = > foreign.call_many code=`双倍` inputs=`数值表` concurrency=2**
> print text=`多个`