mirror of
https://github.com/lune-org/lune.git
synced 2025-05-04 10:43:57 +01:00
8 lines
297 B
Text
8 lines
297 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")
|