lune/tests/process/create/non_blocking.luau
2025-04-24 18:54:19 +02:00

11 lines
301 B
Text

local process = require("@lune/process")
local childThread = coroutine.create(process.create)
local ok, err = coroutine.resume(childThread, "echo", { "hello, world" })
assert(ok, err)
assert(
coroutine.status(childThread) == "dead",
"Child process should not yield the thread it is created on"
)