cbf25999f0
COMING IN THE FULL RELEASE: - A user system - A functional IPC (Inter-Process Communication) system THINGS CAN AND WILL CHANGE FROM NOW UNTIL THE FINAL RELEASE.
15 lines
376 B
Lua
15 lines
376 B
Lua
local computerlib = table.copy(computer)
|
|
local LLcomputer = table.copy(computer)
|
|
|
|
function computerlib.pullSignal(timeout)
|
|
local startTime = LLcomputer.uptime()
|
|
local result
|
|
repeat
|
|
result = {LLcomputer.pullSignal(0)}
|
|
coroutine.yield()
|
|
until result or timeout and LLcomputer.uptime() >= startTime + timeout
|
|
return table.unpack(result)
|
|
end
|
|
|
|
return computerlib
|