MCPcopy Create free account
hub / github.com/dop251/goja_nodejs / StartInForeground

Method StartInForeground

eventloop/eventloop.go:249–252  ·  view source on GitHub ↗

StartInForeground starts the event loop in the current goroutine. The loop continues to run until Stop() is called. If the loop is already started it will panic. Use this instead of Start if you want to recover from panics that may occur while calling native Go functions from within setInterval and

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestStartInForegroundFunction · 0.95

Calls 2

setRunningMethod · 0.95
runMethod · 0.95

Tested by 1

TestStartInForegroundFunction · 0.76