Accidentally uploaded outdated 1.6 docs
This commit is contained in:
Robert Jelic
2023-05-01 16:28:46 +02:00
parent 92b93a3862
commit d4c72514ef
265 changed files with 25608 additions and 3867 deletions

View File

@@ -0,0 +1,19 @@
# onDone
`onDone(self, err)`<br>
This is a custom event which gets triggered as soon as the program has finished.
Here is a example on how to add a onDone event to your program:
```lua
local basalt = require("basalt")
local main = basalt.createFrame()
local aProgram = main:addProgram():execute("rom/programs/shell.lua")
local function onProgramDone()
basalt.debug("Program has finished")
end
aProgram:onDone(onProgramDone)
```