Draft / Experimental: Zith documentation describes a language under active development. Check Implementation Status before relying on a feature.
Implementation status: concurrency is not a core syntax feature. The compiler does not model
async fn,yield,spawn, orawaitas language constructs; any future concurrency support is expected to arrive throughstdliband runtime APIs built from ordinary functions, types, and NRA-checked resource rules. See impl-status.md.
Zith's core language does not define concurrency-specific statements, operators, or function kinds. There are no dedicated HIR nodes for tasks, threads, await, or coroutine suspension. The compiler understands only:
The standard library or an alternate runtime may expose APIs such as thread spawners, executors, message queues, join handles, or resumable tasks. Those APIs are library surface, not syntax:
let handle = runtime.spawn(workerFn, sharedData);
runtime.join(handle);
let task: Task<Response!> = runtime.schedule(fetchRequest);
let response = runtime.blockOn(task);
API names above are illustrative. The compiler does not reserve them.
Concurrency-related safety is enforced through the same pre-HIR ownership proof used everywhere else:
belong value escapes;that define the contract.
The compiler does not special-case threads or async control flow. If a runtime API needs stronger guarantees, it must express them through normal signatures, types, and traits that NRA can reason about before HIR is finalized.
Zith Language Specification — Draft v0.9