mirror of https://github.com/Hilbis/Hilbish
Compare commits
2 Commits
196526cc6a
...
7c815022a9
Author | SHA1 | Date |
---|---|---|
sammyette | 7c815022a9 | |
sammyette | 2ef2998279 |
3
lua.go
3
lua.go
|
@ -152,7 +152,8 @@ func hshgoroutine(gofunc func()) {
|
||||||
|
|
||||||
func hshtimeout(timeoutfunc func(), ms int) {
|
func hshtimeout(timeoutfunc func(), ms int) {
|
||||||
timeout := time.Duration(ms) * time.Millisecond
|
timeout := time.Duration(ms) * time.Millisecond
|
||||||
time.AfterFunc(timeout, timeoutfunc)
|
time.Sleep(timeout)
|
||||||
|
timeoutfunc()
|
||||||
}
|
}
|
||||||
|
|
||||||
func hshinterval(L *lua.LState) int {
|
func hshinterval(L *lua.LState) int {
|
||||||
|
|
Loading…
Reference in New Issue