010 threading library

○ Planned This feature is planned but not yet implemented.

Feature: Threading library support

Failure Output

Showing last 10 of 11 lines
  --> tests/regression/400_RUNTIME_FEATURES/420_PERFORMANCE/420_010_threading_library/input.kz:224:1
    |
224 | ~tor combineResults { contexts: []*ConsumerContext }
    | ^

error[PARSE003]: single continuation branch 'collected' carrying a payload is a one-variant tag union — declare the single output as a bare return instead: `-> []const WorkerHandle`
  --> tests/regression/400_RUNTIME_FEATURES/420_PERFORMANCE/420_010_threading_library/input.kz:288:1
    |
288 | ~tor collectHandles { h1: threading:WorkerHandle, h2: threading:WorkerHandle, h3: threading:WorkerHandle, h4: threading:WorkerHandle }
    | ^

Code

input.kz

Expected output

✓ Threading Library: Validated 1000000 messages across 4 consumers (checksum: 499999500000)

Flows

flow ~createRing click a branch to expand · @labels scroll to their anchor
createRing

Test Configuration

MUST_RUN