run javascript long time
limes-cloud opened this issue · comments
lime commented
`
js.RunString("while(true){}")
`
The code will always block.How to deal with this situation
Jerebtw commented
For example, with a timeout:
timer := time.AfterFunc(10*time.Minute, func() {
vm.Interrupt("Timeout")
})