8 lines
219 B
Lua
8 lines
219 B
Lua
local behavior = require("behavior")
|
|
local status = require("status")
|
|
|
|
-- Run behavior and status reporting in parallel
|
|
parallel.waitForAny(
|
|
behavior.run,
|
|
function() status.reportStatus(behavior.getStatus) end
|
|
) |