startup.lua

-- Startup methods
-- See main.lua to see how these are defined

local coroutine = require "coroutine"

local startup = {}

function startup.run_once()
    print("ran once inside lua!")
end

function startup.run_forever()
    print("starting up run forever....")
    while(true)
    do
        reason, elapsed, units = coroutine.yield("UNTIL_NEXT", "* * * ? * *")
        print(reason, " yielded for ", elapsed, " ", units)
    end
end

return startup