mirror of https://github.com/Hilbis/Hilbish
Compare commits
No commits in common. "7c815022a90d934eda84411fb8d4e88b14377815" and "196526cc6a261a14ff2baf14907583a49622ef31" have entirely different histories.
7c815022a9
...
196526cc6a
3
lua.go
3
lua.go
|
@ -152,8 +152,7 @@ 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.Sleep(timeout)
|
time.AfterFunc(timeout, timeoutfunc)
|
||||||
timeoutfunc()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func hshinterval(L *lua.LState) int {
|
func hshinterval(L *lua.LState) int {
|
||||||
|
|
Loading…
Reference in New Issue