Skip to content

std:thread module

Experimental

The std:thread module exposes thread-local primitives and the sleep function.

PropertyValue
Namespacestd
Sourcesrc/lua/std/thread.rs
Teststests/std/thread.test.luau
StabilityExperimental
Mirrorstd::thread

Syntax

lua
local thread = require("std:thread")

Description

WARNING

This reference page is a stub. The full Lua surface is captured in the module source listed above and exercised by the test file. A spec PR following the spec-driven development workflow will land the contracted surface here.

Until that lands, the source and tests are the contract.

See also