Files
marqdo/public/stdlib/subtask.mq.md
T
cflmyandCursor ecc92f473a Unify frontmatter imports as import bind:target and drop > imports.
`import json:lib/json.mq.md` binds file libraries; `import fmt:time.format`
binds member short names (replaces `> use`). Legacy `> path.mq.md` / `> use`
now hard-error with a hint. Migrates repo docs, skills, ext, lib, public, examples,
man-test and tests; adds a negative gold and updates view/catalog rendering.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 10:03:21 +08:00

22 lines
643 B
Markdown

---
title: lib/subtask — concurrent tasks
description: Spawn file, function, or foreign code in parallel
import subtask:lib/subtask.mq.md
---
# main
spawn picks one mode (others default to None).
path= runs a marqdo run child process; wait returns the exit code.
fn= plus optional args= runs a function in a thread; wait returns the return value.
code= runs a foreign fence subprocess; wait returns stdout text.
lang= plus source= runs foreign source; wait returns 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