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

Method SetInterval

eventloop/eventloop.go:192–203  ·  view source on GitHub ↗

SetInterval schedules to repeatedly run the specified function in the context of the loop as soon as possible after every specified timeout period. SetInterval returns an Interval which can be passed to ClearInterval. The instance of goja.Runtime that is passed to the function and any Values derive

(fn func(*goja.Runtime), timeout time.Duration)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

TestNativeIntervalFunction · 0.95
TestNativeClearIntervalFunction · 0.95
TestEventLoop_TerminateFunction · 0.95

Calls 3

newIntervalMethod · 0.95
addAuxJobMethod · 0.95
startMethod · 0.45

Tested by 4

TestNativeIntervalFunction · 0.76
TestNativeClearIntervalFunction · 0.76
TestEventLoop_TerminateFunction · 0.76