IlluLang Logo

IlluLang

<thread> Internal Library

The <thread> module provides baseline parallel task execution and queue channels.

Import

import thr "<thread>"

Metadata

API

Channels

Baseline Pool Aliases

Current baseline pool APIs map to the same task backend as spawn_native and join.

Built-in Jobs

Example

import thr "<thread>"

var ch = thr.channel_create(4)
thr.channel_send(ch, 42)
display(thr.channel_recv(ch))

var id = thr.pool_submit("sum", 1, 2, 3)
display(thr.pool_join(id, 2000))  ## 6