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

Function WithCanBlock

runtime.go:473–477  ·  view source on GitHub ↗

WithCanBlock will set the runtime's can block; default is true

(canBlock bool)

Source from the content-addressed store, hash-verified

471
472// WithCanBlock will set the runtime's can block; default is true
473func WithCanBlock(canBlock bool) Option {
474 return func(o *Options) {
475 o.canBlock = canBlock
476 }
477}
478
479// WithModuleImport installs or clears the default quickjs-libc file/module loader.
480// When enabled, import/export resolution can load modules via quickjs-ng's default loader.

Callers 2

TestRuntimeBasicsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestRuntimeBasicsFunction · 0.68