marqdo

lib/subtask — concurrent tasksok

stdlib/subtask.mq.md

文档

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
Functions
Variables
  • description text
    Spawn file, function, or foreign code in parallel
  • markup text
    occlusion
  • title text
    lib/subtask — concurrent tasks
可执行知识(辅助)

文档中的步骤

结构步骤(非实际执行时序)

  1. call print

运行与结果

subtask overview ok
完整源码
---
markup: occlusion
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

Variable