Extend subtask stdlib for file, function, and foreign concurrency.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
63e5be80ab
commit
3da7b276d3
11 files changed
+574
-78
No files matched your search
+9
-3
@@ -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`
|
||||
|
||||
+9
-3
@@ -1,12 +1,18 @@
|
||||
---
|
||||
title: lib/子任务
|
||||
description: OS 子进程子任务(父进程结束则子进程结束)
|
||||
description: 并发子任务 — 文件、函数或外联代码
|
||||
---
|
||||
|
||||
## 启动
|
||||
+ `路径`
|
||||
+ `路径`=None
|
||||
+ `函数`=None
|
||||
+ `参数`=None
|
||||
+ `代码`=None
|
||||
+ `语言`=None
|
||||
+ `源码`=None
|
||||
+ `输入`=None
|
||||
|
||||
**> host_subtask_spawn path=`路径`**
|
||||
**> host_subtask_spawn path=`路径` fn=`函数` args=`参数` code=`代码` lang=`语言` source=`源码` stdin=`输入`**
|
||||
|
||||
## 探测
|
||||
+ `id`
|
||||
|
||||
Reference in new issue
Block a user