You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't seem like the Go code can interrupt a running job. The example in https://github.com/dop251/goja#interrupting cannot be replicated when a script is in an infinite loop inside of EventLoop.
The text was updated successfully, but these errors were encountered:
I was thinking that since *goja.Runtime is only available in RunOnLoop(), there's no way to invoke .Interrupt. However it seems that I can keep the reference of Runtime and call Interrupt outside of RunOnLoop.
It doesn't seem like the Go code can interrupt a running job. The example in https://github.com/dop251/goja#interrupting cannot be replicated when a script is in an infinite loop inside of EventLoop.
The text was updated successfully, but these errors were encountered: