Bind imports to library names with bare path calls (and use), forward optional host args through mq wrappers, stabilize writeback replacement newlines, and document the M1/M2 decisions. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
256 B
Markdown
23 lines
256 B
Markdown
---
|
|
title: subtask spawn fn
|
|
> lib/subtask.mq.md
|
|
> lib/json.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
*`args` = > json.parse text={"n":21} *
|
|
|
|
*`id` = > subtask.spawn fn=worker args=`args` *
|
|
|
|
*`v` = > subtask.wait id=`id` *
|
|
|
|
> print text=`v`
|
|
|
|
---
|
|
|
|
## worker
|
|
+ `n`
|
|
|
|
**`n` * 2**
|