MCPcopy Index your code
hub / github.com/dop251/goja_nodejs / Run

Method Run

eventloop/eventloop.go:232–236  ·  view source on GitHub ↗

Run calls the specified function, starts the event loop and waits until there are no more delayed jobs to run after which it stops the loop and returns. The instance of goja.Runtime that is passed to the function and any Values derived from it must not be used outside the function. Do NOT use this f

(fn func(*goja.Runtime))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

TestRunFunction · 0.95
TestStartFunction · 0.95
TestStartInForegroundFunction · 0.95
TestIntervalFunction · 0.95
TestImmediateFunction · 0.95
TestRunNoScheduleFunction · 0.95
TestRunWithConsoleFunction · 0.95
TestRunNoConsoleFunction · 0.95
TestClearIntervalRaceFunction · 0.95
TestNativeTimeoutFunction · 0.95
TestNativeClearTimeoutFunction · 0.95
TestNativeIntervalFunction · 0.95

Calls 2

setRunningMethod · 0.95
runMethod · 0.95

Tested by 15

TestRunFunction · 0.76
TestStartFunction · 0.76
TestStartInForegroundFunction · 0.76
TestIntervalFunction · 0.76
TestImmediateFunction · 0.76
TestRunNoScheduleFunction · 0.76
TestRunWithConsoleFunction · 0.76
TestRunNoConsoleFunction · 0.76
TestClearIntervalRaceFunction · 0.76
TestNativeTimeoutFunction · 0.76
TestNativeClearTimeoutFunction · 0.76
TestNativeIntervalFunction · 0.76