mirror of https://github.com/Hilbis/Hilbish
docs: put all code in codeblock for timers example
parent
61f6337f5f
commit
f107d1df71
|
@ -137,11 +137,11 @@ An example of usage:
|
||||||
local t = hilbish.timers.create(1, 5000, function()
|
local t = hilbish.timers.create(1, 5000, function()
|
||||||
print 'hello!'
|
print 'hello!'
|
||||||
end)
|
end)
|
||||||
```
|
|
||||||
|
|
||||||
t:stop()
|
t:stop()
|
||||||
print(t.running, t.duration, t.type)
|
print(t.running, t.duration, t.type)
|
||||||
t:start()
|
t:start()
|
||||||
|
```
|
||||||
*/
|
*/
|
||||||
func (th *timersModule) loader(rtm *rt.Runtime) *rt.Table {
|
func (th *timersModule) loader(rtm *rt.Runtime) *rt.Table {
|
||||||
timerMethods := rt.NewTable()
|
timerMethods := rt.NewTable()
|
||||||
|
|
Loading…
Reference in New Issue