MCPcopy Create free account
hub / github.com/buke/quickjs-go / WithExecuteTimeout

Function WithExecuteTimeout

runtime.go:445–449  ·  view source on GitHub ↗

WithExecuteTimeout will set the runtime's execute timeout; default is 0

(timeout uint64)

Source from the content-addressed store, hash-verified

443
444// WithExecuteTimeout will set the runtime's execute timeout; default is 0
445func WithExecuteTimeout(timeout uint64) Option {
446 return func(o *Options) {
447 o.timeout = timeout
448 }
449}
450
451// WithMemoryLimit will set the runtime memory limit; if not set, it will be unlimit.
452func WithMemoryLimit(memoryLimit uint64) Option {

Calls

no outgoing calls