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

Method RunOnLoop

eventloop/eventloop.go:319–321  ·  view source on GitHub ↗

RunOnLoop schedules to run the specified function in the context of the loop as soon as possible. The order of the runs is preserved (i.e. the functions will be called in the same order as calls to RunOnLoop()) The instance of goja.Runtime that is passed to the function and any Values derived from i

(fn func(*goja.Runtime))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

TestStartFunction · 0.95
TestStartInForegroundFunction · 0.95
TestRunOnStoppedLoopFunction · 0.95
TestPromiseNativeFunction · 0.95
TestEventLoop_TerminateFunction · 0.95

Calls 1

addAuxJobMethod · 0.95

Tested by 5

TestStartFunction · 0.76
TestStartInForegroundFunction · 0.76
TestRunOnStoppedLoopFunction · 0.76
TestPromiseNativeFunction · 0.76
TestEventLoop_TerminateFunction · 0.76