marqdo

subtaskok

stdlib/subtask.mq.md

Structure

importsubtask:lib/subtask.mq.md
fn · h1main
comment

spawn picks one mode (others default to None).

comment

path= runs a marqdo run child process; wait returns the exit code.

comment

fn= plus optional args= runs a function in a thread; wait returns the return value.

comment

code= runs a foreign fence subprocess; wait returns stdout text.

comment

lang= plus source= runs foreign source; wait returns stdout text.

comment

File children are silent unless quiet=False. Also: poll id=, kill id=, wait_all. Parent exit kills file/foreign children.

call> print text=subtask overview ok
Functions
Variables

No bindings

Execution

subtask overview ok

Source

---
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