Quiet spawn still hides child stdout; workbooks solidify to **returns**, agent-kb lives in the plugin, and multi-step follows OKF file relay rather than print-based answers. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
697 B
Markdown
21 lines
697 B
Markdown
---
|
|
title: lib/subtask — concurrent tasks
|
|
description: Spawn file, function, or foreign code in parallel
|
|
> lib/subtask.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
`spawn` picks **one** mode (others default to `None`):
|
|
|
|
| Argument | Runs | `wait` returns |
|
|
|----------|------|----------------|
|
|
| `path=` | `marqdo run` child process | exit code |
|
|
| `fn=` + optional `args=` | function in a thread (entry module) | return value |
|
|
| `code=` | foreign ``` fence ``` subprocess | stdout text |
|
|
| `lang=` + `source=` | foreign source subprocess | stdout text |
|
|
|
|
File children are silent unless `quiet=False`. Also: `poll id=`, `kill id=`, `wait_all`. Parent exit kills file/foreign children.
|
|
|
|
> print text=subtask overview ok
|