Extend subtask stdlib for file, function, and foreign concurrency.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-07 09:41:22 +08:00
1 parent 63e5be80ab
commit 3da7b276d3
11 files changed
+574 -78

No files matched your search

+9 -3
View File
@@ -1,12 +1,18 @@
---
title: lib/subtask
description: OS subprocess subtasks (parent exit kills children)
description: Concurrent subtasks — file, function, or foreign code
---
## spawn
+ `path`
+ `path`=None
+ `fn`=None
+ `args`=None
+ `code`=None
+ `lang`=None
+ `source`=None
+ `stdin`=None
**> host_subtask_spawn path=`path`**
**> host_subtask_spawn path=`path` fn=`fn` args=`args` code=`code` lang=`lang` source=`source` stdin=`stdin`**
## poll
+ `id`